We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22a1b6d commit b60df8dCopy full SHA for b60df8d
kafka/producer/sender.py
@@ -97,13 +97,15 @@ def run_once(self):
97
# if there are any partitions whose leaders are not known yet, force
98
# metadata update
99
if unknown_leaders_exist:
100
+ log.debug('Unknown leaders exist, requesting metadata update')
101
with self._lock:
102
self._metadata.request_update()
103
104
# remove any nodes we aren't ready to send to
105
not_ready_timeout = 999999999
106
for node in list(ready_nodes):
107
if not self._client.ready(node):
108
+ log.debug('Node %s not ready; delaying produce of accumulated batch', node)
109
ready_nodes.remove(node)
110
not_ready_timeout = min(not_ready_timeout,
111
self._client.connection_delay(node))
0 commit comments