diff options
author | Dana Powers <dana.powers@rd.io> | 2016-01-23 23:27:17 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@rd.io> | 2016-01-23 23:27:31 -0800 |
commit | 80c3a76aa65ad3f704565038fef7938dae39345f (patch) | |
tree | 1a62d0ab6ef6ed518a3fa45ae88a7a2c80e897e7 /kafka/conn.py | |
parent | b52f17e18dfc8658588b999c2697d81064e048c6 (diff) | |
download | kafka-python-80c3a76aa65ad3f704565038fef7938dae39345f.tar.gz |
Warn on 0.8.2 GroupCoordinator no-topic-quirk, dont raise exception
Diffstat (limited to 'kafka/conn.py')
-rw-r--r-- | kafka/conn.py | 7 |
1 files changed, 5 insertions, 2 deletions
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: |