Skip to content
This repository was archived by the owner on Mar 24, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pykafka/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
from .broker import Broker
from .exceptions import (ERROR_CODES,
ConsumerCoordinatorNotAvailable,
KafkaException,
SocketDisconnectedError,
LeaderNotAvailable)
from .protocol import ConsumerMetadataRequest, ConsumerMetadataResponse
from .topic import Topic
Expand Down Expand Up @@ -285,6 +287,10 @@ def get_offset_manager(self, consumer_group):
log.error('Error discovering offset manager.')
if i == MAX_RETRIES - 1:
raise
except SocketDisconnectedError:
raise KafkaException("Socket disconnected during offset manager "
"discovery. This can happen when using PyKafka "
"with a Kafka version lower than 0.8.2.")
else:
coordinator = self.brokers.get(res.coordinator_id, None)
if coordinator is None:
Expand Down