Skip to content

Retry bootstrapping after backoff when necessary #1736

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

Merged
merged 3 commits into from
Mar 14, 2019

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Mar 14, 2019

The current client attempts to bootstrap once during initialization, but if it fails there is no second attempt and the client will be inoperable. This can happen, for example, if an entire cluster is down at the time a long-running client starts execution.

This PR attempts to fix this by removing the synchronous bootstrapping from KafkaClient init, and instead merges bootstrap metadata with the cluster metadata. The java client uses a similar approach. This allows us to continue falling back to bootstrap data when necessary throughout the life of a long-running consumer or producer.

Fixes #1670


This change is Reviewable

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.

Not catching exceptions/stuck on 'localhost:9092'
2 participants