-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Reactive routes - fix race condition in generated handlers #8579
Reactive routes - fix race condition in generated handlers #8579
Conversation
mkouba
commented
Apr 15, 2020
- follows up on Reactive routes - improve @Route method invocation performance #8536
@michalszynkiewicz I let you check that one as you discovered the issue? |
I know nothing about the code, but it looks that it moves code that was in If I read correctly, it gets the arc container via static method in the constructor. Will the container always be ready at this point @mkouba ? |
Yes, it does.
Yes, it should. That's why I added the |
+1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not actually sure what race this is actually fixing, and there does not seem to be any info anywhere. The linked PR mentions that there is a bug but gives no info.
...ns/vertx-web/deployment/src/main/java/io/quarkus/vertx/web/deployment/VertxWebProcessor.java
Outdated
Show resolved
Hide resolved
@stuartwdouglas I'm sorry. So while thinking of it it was rather a JMM visibility problem where a non-volatile field was set in one thread but probably not visible on the other thread. |
6fc0326
to
4297e2c
Compare
fyi, #8576 with this commit passes the checks |