GitHub user ymatsuda opened a pull request:

    https://github.com/apache/kafka/pull/315

    MINOR: optimize unnecessary poll(0) away

    @guozhangwang 
    This change aims to remove unnecessary ```consumer.poll(0)``` calls.
    * ```once``` after some partition is resumed
    * whenever the size of the top queue in any task is below 
```BUFFERED_RECORDS_PER_PARTITION_CONFIG```


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ymatsuda/kafka less_poll_zero

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/315.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 #315
    
----
commit 8557db0f63410b033f1d3c93764aae74e3787a19
Author: Yasuhiro Matsuda <yasuh...@confluent.io>
Date:   2015-10-15T16:31:37Z

    MINOR: optimize unnecessary poll(0) away

----


---
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.
---

Reply via email to