GitHub user drausin opened a pull request: https://github.com/apache/kafka/pull/1055
KAFKA-3392: ConsumerRecords iterator throws NoSuchElementException when a TopicPartition is empty This contribution is my original work, and I license it under the project's open source license. You can merge this pull request into a Git repository by running: $ git pull https://github.com/drausin/kafka bugfix/consumer-records-iterator Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/1055.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 #1055 ---- commit f53dc3a621ef741edc8baedf1ab32fd7fa2e0b8f Author: Drausin Wulsin <dwul...@palantir.com> Date: 2016-03-13T17:03:03Z fix bug ConsumerRecords iterator makeNext method ---- --- 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. ---