[ https://issues.apache.org/jira/browse/KAFKA-277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13212738#comment-13212738 ]
Jun Rao commented on KAFKA-277: ------------------------------- Also, please add a unit test for this. Use a max_message size larger than each individual uncompressed message, but smaller than the compressed message. > Add a shallow iterator to the ByteBufferMessageSet, which is only used in > SynchProducer.verifyMessageSize() function > -------------------------------------------------------------------------------------------------------------------- > > Key: KAFKA-277 > URL: https://issues.apache.org/jira/browse/KAFKA-277 > Project: Kafka > Issue Type: Bug > Reporter: Yang Ye > Attachments: shallow_iterator.patch > > > Shallow iterator just traverse the first level messages of a > ByteBufferMessageSet, compressed messages won't be decompressed and treated > individually -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira