summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2019-03-06 08:02:37 -0800
committerJeff Widman <jeff@jeffwidman.com>2019-03-07 16:52:04 -0800
commit7ce69765ab71350aa739f388217a180cad8ce17a (patch)
treeb8dc78431a187435d77853ec602a12fb201505fa
parent957c62d6ded7a3652e7897db20a23e070a6ad852 (diff)
downloadkafka-python-7ce69765ab71350aa739f388217a180cad8ce17a.tar.gz
Fetcher should call client.poll() regardless of in-flight-request count
-rw-r--r--kafka/consumer/group.py3
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