GitHub user tcrayford opened 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 6ec70c1aa63f3d400d286a9893d0fa175f471d09 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. ---