You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using kafka-python 0.9.3 with Kafka 0.8.2 on a cluster of three nodes. We found that if we turn down one of the kafka nodes, our producers fail to send messages to kafka until we restart them. It seems to be that kafka-python doesn't detect partition leader changes. Is that expected? may it be something we do wrong while using your library?
Thanks.
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "/var/www/honshuu-alerts-processing/src/serverdensity/alerts_processing/tornado/app.py", line 102, in post
json.dumps(payload))\n File "/var/www/honshuu-alerts-processing/eggs/kafka_python-0.9.3-py2.7.egg/kafka/producer/keyed.py", line 60, in send_messages
partition = self._next_partition(topic, key)\n File "/var/www/honshuu-alerts-processing/eggs/kafka_python-0.9.3-py2.7.egg/kafka/producer/keyed.py", line 57, in _next_partition
return partitioner.partition(key, self.client.get_partition_ids_for_topic(topic))
File "/var/www/honshuu-alerts-processing/eggs/kafka_python-0.9.3-py2.7.egg/kafka/partitioner/hashed.py", line 9, in partition
size = len(partitions)
TypeError: object of type 'NoneType' has no len()
Hi,
We are using kafka-python 0.9.3 with Kafka 0.8.2 on a cluster of three nodes. We found that if we turn down one of the kafka nodes, our producers fail to send messages to kafka until we restart them. It seems to be that kafka-python doesn't detect partition leader changes. Is that expected? may it be something we do wrong while using your library?
Thanks.
The text was updated successfully, but these errors were encountered: