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

Shared producer(s) closed ahead of time if vertx is being shut down #269

Open
flukschander opened this issue May 27, 2024 · 0 comments
Open
Labels

Comments

@flukschander
Copy link

flukschander commented May 27, 2024

Version

4.X

Context

When creating a shared producer from a Verticle it should stay alive (aka not closed) till the Verticle close(..) method finished.
Currently shared producers register a shutdown hook with VertxInternal directly and therefore the producer is closed ahead of time.

Do you have a reproducer?

Testcase (and PR) here

Steps to reproduce

  1. initiate vertx instance
  2. deploy verticle
  3. within verticle create shared consumer
  4. close vertx
  5. within the stop(Promise<Void> stopPromise) method of the verticle wait a few milliseconds to simulate finish processing currently in-flight-messages and try to send a message before completing the stop-promise
  6. observer error messages
flukschander added a commit to flukschander/vertx-kafka-client that referenced this issue May 27, 2024
flukschander added a commit to flukschander/vertx-kafka-client that referenced this issue May 27, 2024
flukschander added a commit to flukschander/vertx-kafka-client that referenced this issue May 27, 2024
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