diff options
author | Dana Powers <dana.powers@gmail.com> | 2019-03-06 08:02:37 -0800 |
---|---|---|
committer | Jeff Widman <jeff@jeffwidman.com> | 2019-03-07 16:52:04 -0800 |
commit | 7ce69765ab71350aa739f388217a180cad8ce17a (patch) | |
tree | b8dc78431a187435d77853ec602a12fb201505fa | |
parent | 957c62d6ded7a3652e7897db20a23e070a6ad852 (diff) | |
download | kafka-python-7ce69765ab71350aa739f388217a180cad8ce17a.tar.gz |
Fetcher should call client.poll() regardless of in-flight-request count
-rw-r--r-- | kafka/consumer/group.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py index 8d2c65e..5f06e7b 100644 --- a/kafka/consumer/group.py +++ b/kafka/consumer/group.py @@ -1090,8 +1090,7 @@ class KafkaConsumer(six.Iterator): if time.time() > timeout_at: log.debug("internal iterator timeout - breaking for poll") break - if self._client.in_flight_request_count(): - self._client.poll(timeout_ms=0) + self._client.poll(timeout_ms=0) # An else block on a for loop only executes if there was no break # so this should only be called on a StopIteration from the fetcher |