-
Notifications
You must be signed in to change notification settings - Fork 915
check connection to broker is successful or not #539
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
Comments
There is not although this should be of little concern to the application itself. Prior to establishing a successful connection with the broker(s) messages will be queued in the unassigned partition queue. Once the connection is established and the metadata response is received these messages will be moved from the unassigned queue to the appropriate partition queue and eventually transmitted to the leaders of these partitions. You also don't need to worry about retries or reconnects as these are also handled by librdkafka client. In the event librdkafka is unable to contact any of the brokers a |
The following thread is highly relevant to your ask as well. I recommend giving it a quick once over as well #532 |
@rnpridgeon thank you |
@rnpridgeon I have a few questions:
|
There are a few situations in which librdkafka will propagate the
There are times however where you may reach out to the wrong host and they do not actively refuse the connection. In this case it will continue to try and connect up until the system defined connection timeout. After bootstrapping however if you lose connectivity to all brokers you can expect it to take roughly You do however have application level control over when a https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md The producer queue buffer size is also configurable and can be tuned using the |
@rnpridgeon thank you |
Description
Hello everyone,
Currently, what happens is that when the connection to
Kafka broker
is unsuccessful then logs of connection failure is printed on the screen.I just wanna know is there any method that I can use to check the status of connection with kafka broker.
Currently, I am using AdminClient's list_topics method to check the connection with kafka broker.
Thanks in advance
Environment Details:
confluent_kafka.version()
andconfluent_kafka.libversion()
): confluent-kafka==0.11.6{'bootstrap.server': "localhost:9092"}
)
The text was updated successfully, but these errors were encountered: