Skip to content

Commit 41d9f1c

Browse files
authored
Log retriable coordinator NodeNotReady, TooManyInFlightRequests as debug not error (dpkp#1975)
1 parent bc25877 commit 41d9f1c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

kafka/coordinator/base.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,13 +489,16 @@ def _send_join_group_request(self):
489489
return future
490490

491491
def _failed_request(self, node_id, request, future, error):
492-
log.error('Error sending %s to node %s [%s]',
493-
request.__class__.__name__, node_id, error)
494492
# Marking coordinator dead
495493
# unless the error is caused by internal client pipelining
496494
if not isinstance(error, (Errors.NodeNotReadyError,
497495
Errors.TooManyInFlightRequests)):
496+
log.error('Error sending %s to node %s [%s]',
497+
request.__class__.__name__, node_id, error)
498498
self.coordinator_dead(error)
499+
else:
500+
log.debug('Error sending %s to node %s [%s]',
501+
request.__class__.__name__, node_id, error)
499502
future.failure(error)
500503

501504
def _handle_join_group_response(self, future, send_time, response):

0 commit comments

Comments
 (0)