Skip to content

Commit

Permalink
Fix consumer poll stuck error when no available partition (#1375)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckyoog authored and dpkp committed Feb 9, 2018
1 parent 8655c75 commit 990e928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafka/coordinator/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def commit_offsets_async(self, offsets, callback=None):
# its completion). Note that commits are treated as heartbeats by the
# coordinator, so there is no need to explicitly allow heartbeats
# through delayed task execution.
self._client.poll() # no wakeup if we add that feature
self._client.poll(timeout_ms=0) # no wakeup if we add that feature

def _do_commit_offsets_async(self, offsets, callback=None):
assert self.config['api_version'] >= (0, 8, 1), 'Unsupported Broker API'
Expand Down

0 comments on commit 990e928

Please sign in to comment.