-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
HandlerRegistration.receive does not account for closed event loops #5337
Comments
I am also facing the same issue |
For me the issue came out to be: The AbstractVerticle start method was throwing an exception which was not caught |
I think deliver message locally should ensure the message can be enqued, is there an easy reproducer to implement ? are you using virtual threads ? |
No, not using virtual threads. No reproducer, but the race condition is IMHO quite apparent:
Would a PR be appreciated? |
not saying it is not, asking if you have a reproducer to have a test and avoid writing one :-) |
a PR would be appreciated, this subject actually becomes more important with the advent of virtual threads and shadow context (in vertx 5) |
I'll see if I can find some time in near future :) Anything in particular that I need to know/do when submitting to this project? (I'm fairly familiar with the project in terms of using it, I moved a really, really large project from Vert.x 2 and Java 8 to Vert.x 4 and Java 11 last year - biggest issue was to "reinvent" a new ModuleClassLoader for isolated class loading and "modules" since that had been dropped from the Vert.x project - but, hey, lots and lots of legacy code.. :) ) |
@Onkelborg you should read the contribution guide and that is enough |
(I still have this in the back of my head..) |
Version
4.5.10
Context
When sending/publishing messages on the eventbus, and (one of) the receiver verticle is being undeployed, and the receiver verticle runs on a custom thread pool, the publish fails due to the receiving context's thread pool rejecting the operation since it's shutting down.
Do you have a reproducer?
No
Steps to reproduce
Extra
Stack trace/Exception
Idea for where to change things:
For our use case, we are only concerned about publish-messages, but I do see potential issues for regular messages too
The text was updated successfully, but these errors were encountered: