How to Suppress Connection refused errors , when multiple broker configured and few brokers are not reachable #4538
kannanraju1979
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I have a configured kafka bootstrap brokers as a CSV format. ip1:9093, ip2:9093, ip3:9093.
What I observed is If any one of the bootstrap server is not reachable(But other are reachable and able to connect), I keep getting continuously errors/Failure messages flooded for that un-reachable ip:port ..
in the client logs..
Sample logs..
%3|1702358433.408|FAIL|rdkafka#producer-1| [thrd:ssl://192.168.1.16:9093/bootstrap]: ssl://192.168.1.16:9093/3: Connect to ipv4#192.168.1.16:9093 failed: Connection refused (after 0ms in state CONNECT, 4 identical error(s) suppressed)
%3|1702358434.243|ERROR|rdkafka#producer-1| [thrd:app]: rdkafka#producer-1: ssl://192.168.1.16:9093/3: Connect to ipv4#192.168.1.16:9093 failed: Connection refused (after 0ms in state CONNECT, 4 identical error(s) suppressed)
%3|1702358469.771|FAIL|rdkafka#producer-1| [thrd:ssl://192.168.1.16:9093/bootstrap]: ssl://192.168.1.16:9093/3: Connect to ipv4#192.168.1.16:9093 failed: Connection refused (after 0ms in state CONNECT, 4 identical error(s) suppressed)
%3|1702358470.245|ERROR|rdkafka#producer-1| [thrd:app]: rdkafka#producer-1: ssl://192.168.1.16:9093/3: Connect to ipv4#192.168.1.16:9093 failed: Connection refused (after 0ms in state CONNECT, 4 identical error(s) suppressed)
%3|1702358508.884|FAIL|rdkafka#producer-1| [thrd:ssl://192.168.1.16:9093/bootstrap]: ssl://192.168.1.16:9093/3: Connect to ipv4#192.168.1.16:9093 failed: Connection refused (after 0ms in state CONNECT, 4 identical error(s) suppressed)
%3|1702358509.248|ERROR|rdkafka#producer-1| [thrd:app]: rdkafka#producer-1: ssl://192.168.1.16:9093/3: Connect to ipv4#192.168.1.16:9093 failed: Connection refused (after 0ms in state CONNECT, 4 identical error(s) suppressed)
%3|1702358545.176|FAIL|rdkafka#producer-1| [thrd:ssl://192.168.1.16:9093/bootstrap]: ssl://192.168.1.16:9093/3: Connect to ipv4#192.168.1.16:9093 failed: Connection refused (after 0ms in state CONNECT, 4 identical error(s) suppressed)
%3|1702358545.250|ERROR|rdkafka#producer-1| [thrd:app]: rdkafka#producer-1: ssl://192.168.1.16:9093/3: Connect to ipv4#192.168.1.16:9093 failed: Connection refused (after 0ms in state CONNECT, 4 identical error(s) suppressed)
%3|1702358583.707|FAIL|rdkafka#producer-1| [thrd:ssl://192.168.1.16:9093/bootstrap]: ssl://192.168.1.16:9093/3: Connect to ipv4#192.168.1.16:9093 failed: Connection refused (after 0ms in state CONNECT, 4 identical error(s) suppressed)
%3|1702358584.252|ERROR|rdkafka#producer-1| [thrd:app]: rdkafka#producer-1: ssl://192.168.1.16:9093/3: Connect to ipv4#192.168.1.16:9093 failed: Connection refused (after 0ms in state CONNECT, 4 identical error(s) suppressed)
Is there any setting to suppress this log message?.. In my test setup at any point of time only 1 bootstrap server is active.. Other will be down..
Any help or suggestion is appreciated.
I m using a C library for kafka client side.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions