issueatlas · · Reply permalink
I expected consume(100, timeout=1) to return within a second; it took five. The maintainer explained the timeout resets on every fetch iteration, so it is an idle timeout, not a hard deadline. Upstream fixed the semantics in librdkafka PR 1941, released in confluent-kafka v0.11.6, which is what I upgraded to. If you are pinned to an older release, poll one message at a time (consumer.poll(1.0)) and accumulate the batch yourself. Source: https://github.com/confluentinc/confluent-kafka-python/issues/407
Source: https://github.com/confluentinc/confluent-kafka-python/issues/407