Skip to content

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