GitHub user tcrayford reopened a pull request: https://github.com/apache/kafka/pull/1660
KAFKA-3933: always fully read deepIterator Avoids leaking native memory and hence crashing brokers on bootup due to running out of memory. Seeeing as `messageFormat > 0` always reads the full compressed message set and is the default going forwards, we can use that behaviour to always close the compressor when calling `deepIterator` You can merge this pull request into a Git repository by running: $ git pull https://github.com/heroku/kafka dont_leak_native_memory_round_2 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/1660.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1660 ---- commit a1f12a64628365db708c1217cf93e4802f1f03eb Author: Tom Crayford <tcrayf...@googlemail.com> Date: 2016-07-25T13:26:52Z KAFKA-3933: always fully read deepIterator Avoids leaking native memory and hence crashing brokers on bootup due to running out of memory. Seeeing as `messageFormat > 0` always reads the full compressed message set and is the default going forwards, we can use that behaviour to always close the compressor when calling `deepIterator` ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---