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

Let consumer crash when no brokers are available #1402

Merged
merged 1 commit into from
Jun 27, 2022

Conversation

Nevon
Copy link
Collaborator

@Nevon Nevon commented Jun 27, 2022

The fetch manager rebalancing mechanism caused an infinite loop when there were no brokers available, causing the consumer to never become aware of any connection issues.

With 2.0.1, if you ran a consumer against a single broker, and then shut that broker down, the consumer would just freeze with no output and use 100% of a CPU core. With this change, the fetcher will try to fetch against one of the now unavailable brokers and have a KafkaJSConnectionError bubble up and eventually crash the consumer, as was the case with <2.0.0.

Fixes #1384

The fetch manager rebalancing mechanism caused an infinite loop when
there were no brokers available, causing the consumer to never become
aware of any connection issues.

Fixes #1384
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

Successfully merging this pull request may close these issues.

Consumer runner tries to start the fetch manager without delay
1 participant