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

Add BrokerConnection.connect_blocking() #1411

Merged
merged 4 commits into from
Mar 9, 2018
Merged

Add BrokerConnection.connect_blocking() #1411

merged 4 commits into from
Mar 9, 2018

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Mar 8, 2018

This PR adds a blocking connect to BrokerConnection that will attempt to connect to all ip/ports found via a single dns lookup. We can use this during bootstrap and version probes to handle brokers that advertise a hostname that has multiple interfaces but the broker only listens on one of them. This can happen when a host has both an IPv4 and an IPv6 interface (but the kafka broker binds to only one of them). This will also help in contexts where the bootstrap_servers list includes a multi-address dns entry where not all results are available/healthy.

@PriyaranjanMaratheDish
Copy link

How to handle this when I am trying to consume on my mac? Seeing the issue and when I add the api version I don't get any results.

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.

2 participants