Closed
Description
I have this weird behavior since >=1.4.5 :
KafkaConsumer.partitions_for_topic() return None at the first call, even if the partition exist.
If we do call another method (ex: topics() ) then we call partitions_for_topic() it will work.
After few test 1.4.4 seems to work properly.
Code to reproduce the error:
from kafka import KafkaConsumer
consumer = KafkaConsumer(group_id='test',bootstrap_servers=['ip:port'])
print('{}'.format(consumer.partitions_for_topic('test-topic'))
I usually investigate further more but I'm in a rush right now :/ maybe in few days :)
Metadata
Metadata
Assignees
Labels
No labels