summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kafka/coordinator/base.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/kafka/coordinator/base.py b/kafka/coordinator/base.py
index d91f3ea..b0e236a 100644
--- a/kafka/coordinator/base.py
+++ b/kafka/coordinator/base.py
@@ -489,13 +489,16 @@ class BaseCoordinator(object):
return future
def _failed_request(self, node_id, request, future, error):
- log.error('Error sending %s to node %s [%s]',
- request.__class__.__name__, node_id, error)
# Marking coordinator dead
# unless the error is caused by internal client pipelining
if not isinstance(error, (Errors.NodeNotReadyError,
Errors.TooManyInFlightRequests)):
+ log.error('Error sending %s to node %s [%s]',
+ request.__class__.__name__, node_id, error)
self.coordinator_dead(error)
+ else:
+ log.debug('Error sending %s to node %s [%s]',
+ request.__class__.__name__, node_id, error)
future.failure(error)
def _handle_join_group_response(self, future, send_time, response):