From 80c3a76aa65ad3f704565038fef7938dae39345f Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Sat, 23 Jan 2016 23:27:17 -0800 Subject: Warn on 0.8.2 GroupCoordinator no-topic-quirk, dont raise exception --- kafka/conn.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'kafka/conn.py') diff --git a/kafka/conn.py b/kafka/conn.py index 5b54c85..a611e2b 100644 --- a/kafka/conn.py +++ b/kafka/conn.py @@ -305,9 +305,12 @@ class BrokerConnection(object): # 0.8.2 quirk if (self.config['api_version'] == (0, 8, 2) and ifr.response_type is GroupCoordinatorResponse and + ifr.correlation_id != 0 and recv_correlation_id == 0): - raise Errors.KafkaError( - 'Kafka 0.8.2 quirk -- try creating a topic first') + log.warning('Kafka 0.8.2 quirk -- GroupCoordinatorResponse' + ' coorelation id does not match request. This' + ' should go away once at least one topic has been' + ' initialized on the broker') elif ifr.correlation_id != recv_correlation_id: -- cgit v1.2.1