Skip to content

Regression issue of KafkaConsumer.partitions_for_topic since 1.4.5 #1789

Closed
@m0udd

Description

@m0udd

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions