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

Investigate connection pool reconnect when Kafka not yet available #1153

Closed
jfallows opened this issue Jul 16, 2024 · 1 comment · Fixed by #1191
Closed

Investigate connection pool reconnect when Kafka not yet available #1153

jfallows opened this issue Jul 16, 2024 · 1 comment · Fixed by #1191
Assignees
Labels
bug Something isn't working

Comments

@jfallows
Copy link
Contributor

jfallows commented Jul 16, 2024

Use zilla-demos streampay with connection pool enabled to attempt to reproduce.

Steps to reproduce

  1. git clone https://github.com/aklivity/zilla-demos/tree/main/streampay
  2. Go to streampay/stack and edit stack.yaml file by removing , "-Pzilla.binding.kafka.client.connection.pool=false"]
    3 Follow the readme to start the stack

**Expected behaviour **
Zilla starts successfully and starts receiving messages and streampay UI works

**Actual behaviour **
zilla prints

 zilla-streampay-demo-api:kafka_asyncapi_client.$composite-kafka_api.kafka_client0 [18/Jul/2024:06:31:39 +0000] BINDING_KAFKA_AUTHORIZATION_FAILED Unable to authenticate client with identity (user)

and doesn't receive any message hence streampay app doesn't work

@jfallows jfallows added the bug Something isn't working label Jul 16, 2024
@jfallows jfallows self-assigned this Jul 16, 2024
@jfallows
Copy link
Contributor Author

Reproducing this issue is a race condition on startup of the stack.

During stack startup, we also create the redpanda user used by zilla to authenticate access.

If zilla attempts to connect before the user is created and authentication fails, then the zilla connection pool does not attempt to reconnect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant