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

Long producer closing when connection is not estabilished #271

Open
podlesrafal opened this issue Jul 8, 2024 · 0 comments
Open

Long producer closing when connection is not estabilished #271

podlesrafal opened this issue Jul 8, 2024 · 0 comments
Labels

Comments

@podlesrafal
Copy link

Questions

When connection is not established and try to close producer connection, there is block for around 1min. This is because Promise<Void> trampolineProm = ctx.promise(); is executing in io.vertx.kafka.client.producer.impl.KafkaWriteStreamImpl.close(long):272. I see that on the master branch this line was changed around 1 year ago: a0e349f and I'm wondering why this wasn't part of release.

Can you add this change to next release or provide better solution? Currently I call unwrap() and then close connection natively.

Version

4.5.7

Steps to reproduce

  1. Start producer connection with some dummy url
  2. Stop producer.
  3. Logs [Producer clientId=producer-5] Connection to node -1 (localhost/127.0.0.1:1111) could not be established. Broker may not be available. appears for around 1 min and then connection is correctly closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant