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

Purpose of bootstrap_connected() #1962

Closed
Tim1000V opened this issue Nov 28, 2019 · 1 comment
Closed

Purpose of bootstrap_connected() #1962

Tim1000V opened this issue Nov 28, 2019 · 1 comment

Comments

@Tim1000V
Copy link

Hi,
When reading the documentation I was assuming that bootstrap_connected(), would allow me to check if the client was disconnected from the kafka cluster.
But in cluster.py _boostrap_broker returned by _generate_bootstrap_brokers, can't match any real broker_id (eg: [1,2,3] vs [bootstrap-1,bootstrap-2,bootstrap-3]) .

So what's the purpose of this function?

@dpkp
Copy link
Owner

dpkp commented Dec 29, 2019

This function was community submitted, and I can't speak to the submitters purposes. The PR is #1876 . I think it's a totally reasonable implementation for people that think this information is useful for them. But agree, this is not going to tell you whether "the client was disconnected from the kafka cluster"

@dpkp dpkp closed this as completed Dec 29, 2019
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

2 participants