[
https://issues.apache.org/jira/browse/KAFKA-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ewen Cheslack-Postava resolved KAFKA-4026.
------------------------------------------
Resolution: Not A Problem
Assignee: Ewen Cheslack-Postava
Fix Version/s: (was: 0.8.1.2)
[~imperio] For the old, high-level consumer, there is a configuration parameter
consumer.timeout.ms that you can use to control how long the consumer blocks
waiting for new messages.
That said, we'd recommend moving to the new consumer if possible (which I
realize might not be an option given the version you are on). It has a
different API based on single-threaded polling for data -- in that API the
timeout is explicit since it is provided to every poll() API call.
(I'm resolving this as it seemed to just be a question, and removed the fix
version.)
> consumer block
> --------------
>
> Key: KAFKA-4026
> URL: https://issues.apache.org/jira/browse/KAFKA-4026
> Project: Kafka
> Issue Type: Test
> Components: consumer
> Affects Versions: 0.8.1.1
> Environment: ubuntu 14.04
> Reporter: wxmimperio
> Assignee: Ewen Cheslack-Postava
>
> when i use high level api make consumer. it is a block consumer,how can i
> know the time of blocked?I put messages into a buffer.It did not reach the
> buffer length the consumer blocked,the buffer can not be handled.How can i
> deal with this problem?The buffer did not reach the buffer length,I can
> handled the buffer.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)