Skip to content

Commit 36db615

Browse files
dpkp88manpreet
authored andcommitted
Backoff on unavailable group coordinator retry (dpkp#1125)
1 parent 205165a commit 36db615

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kafka/coordinator/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ def ensure_coordinator_known(self):
219219
log.debug('Requesting metadata for group coordinator request: %s', future.exception)
220220
metadata_update = self._client.cluster.request_update()
221221
self._client.poll(future=metadata_update)
222+
else:
223+
time.sleep(self.config['retry_backoff_ms'] / 1000)
222224
else:
223225
raise future.exception # pylint: disable-msg=raising-bad-type
224226

0 commit comments

Comments
 (0)