private boolean isLargeMessage(byte[] message) {
    return message != null && message.length > maxMessageSize;
  }
This function puts messages in the store after validating their size.
It drops any large messages in the entry list if it has been configured to do so.
Otherwise, it throws an exception stating that a large message was encountered,
and does not put any of the messages in the store.

@param entries the updated mappings to put into this key-value store.
samza-kv/src/main/java/org/apache/samza/storage/kv/LargeMessageSafeStore.java