You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, ConsumerCoordinator.time_to_next_poll() returns the time in seconds, not milliseconds. The effective timeout is always much lower than timeout_ms, causing KafkaConsumer.poll() to spin, consuming a lot of CPU.
The text was updated successfully, but these errors were encountered:
braedon
added a commit
to braedon/kafka-python
that referenced
this issue
Feb 16, 2018
KafkaConsumer.poll()
is effectively busy waiting, asKafkaConsumer._poll_once()
doesn't respecttimeout_ms
._poll_once()
setstimeout_ms
ofKafkaClient.poll()
to:However,
ConsumerCoordinator.time_to_next_poll()
returns the time in seconds, not milliseconds. The effective timeout is always much lower thantimeout_ms
, causingKafkaConsumer.poll()
to spin, consuming a lot of CPU.The text was updated successfully, but these errors were encountered: