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

Brod producer connection terminates/fails without logging reason #510

Open
kjellwinblad opened this issue Jun 7, 2022 · 0 comments
Open

Comments

@kjellwinblad
Copy link
Contributor

How to reproduce:

Install docker and docker-compose

Do the following

git clone https://github.com/kjellwinblad/brod_gssapi.git
cd brod_gssapi
git checkout origin/kjell/example_not_working -b kjell/example_not_working
cd example
./up
docker-compose up brod_client

The last command runs brod_client/src/example.erl. It will fail when running the line brod:produce_sync_offset(client1, Topic, Partition, <<"FistKey">>, <<"FirstValue">>) which is ok since the Kafka server's advertised.listeners configuration is badly configured. However, we only get the error reason:

{reached_max_retries,no_leader_connection}

Expected Result

A logging message is produced every time the producer's connection fails with as much information as possible (the address and port it tries to connect to and if possible the reason for the failure etc). In the above example the log entry should contain the following info:

{error,{{sasl_auth_error,{sasl_fail,<<"SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure.  Minor code may provid"...>>}},
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

1 participant