From 48e96822b3ec4f897438a2d1cdb735f51648cb48 Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Sun, 24 Jan 2016 13:23:26 -0800 Subject: [PATCH] Dont need to refresh metadata on GroupCoordinatorNotAvailableErrors --- kafka/coordinator/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kafka/coordinator/base.py b/kafka/coordinator/base.py index 6dd65dc..db16ca3 100644 --- a/kafka/coordinator/base.py +++ b/kafka/coordinator/base.py @@ -200,7 +200,10 @@ class BaseCoordinator(object): self._client.poll(future=future) if future.failed(): - if future.retriable(): + if isinstance(future.exception, + Errors.GroupCoordinatorNotAvailableError): + continue + elif future.retriable(): metadata_update = self._client.cluster.request_update() self._client.poll(future=metadata_update) else: