Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple consumer in one process will cause poll() block? #2337

Open
jixushui opened this issue Nov 23, 2022 · 0 comments
Open

multiple consumer in one process will cause poll() block? #2337

jixushui opened this issue Nov 23, 2022 · 0 comments

Comments

@jixushui
Copy link

when multiple consumer in one process, each consumer invoke poll() will block server minutes.

consumer1 = KafkaConsumer(topic1, client_id=topic1, bootstrap_servers=KAFKA_SERVER, consumer_timeout_ms=1000, group_id="group_test")
consumer2 = KafkaConsumer(topic2, client_id=topic2, bootstrap_servers=KAFKA_SERVER, consumer_timeout_ms=1000, group_id="group_test")
consumer1.poll() # this is ok
consumer2.poll() # this will block server minutes

the environment and config is one zk, one broker, one partition per topic

can any one help?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant