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

detecting connection failures in producer #13

Open
tanish20j opened this issue Aug 18, 2023 · 2 comments
Open

detecting connection failures in producer #13

tanish20j opened this issue Aug 18, 2023 · 2 comments

Comments

@tanish20j
Copy link

Description

Hi,
mod_event_kafka is not able to detect connection failures while setting up a producer. I only see errors when I reload the module.

How to reproduce

Run simply producer passing an incorrect broker address.
No error is reported while creating the rdkafka object or topic.

librdkafka version (release number or git tag): v2.1.1
Operating system: ubuntu 16.04
Freeswitch: 1.6

Thanks,

@tanish20j
Copy link
Author

I also don't see any error when I try to connect to a non existing Kafka server

@kingster
Copy link
Member

Actually, the official clients also talks about the same. confluentinc/librdkafka#2062

Kafka isn't a simple connect and failure, if there are intermittent failures, those would be buffered, and the system will keep retrying to connect. You can try reducing the buffer-size to very small, and then it should throw the appropriate error almost immediately in your logs.

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