diff options
author | Dana Powers <dana.powers@gmail.com> | 2019-12-29 15:59:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-29 15:59:08 -0800 |
commit | 41d9f1c032f8e055685c6f8353e23c2e735211ca (patch) | |
tree | 427b88ca48a9da2243f0981299379c7d133aa8cf | |
parent | bc25877a6bf4d579508b1ee9df3ca7870757f029 (diff) | |
download | kafka-python-41d9f1c032f8e055685c6f8353e23c2e735211ca.tar.gz |
Log retriable coordinator NodeNotReady, TooManyInFlightRequests as debug not error (#1975)
-rw-r--r-- | kafka/coordinator/base.py | 7 |
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): |