Make all Vert.x executeBlocking ordering requirement explicit#54314
Make all Vert.x executeBlocking ordering requirement explicit#54314jponge wants to merge 3 commits into
Conversation
|
Note: I've used my best judgement (most calls should use |
|
Is there a way to prevent using the API that makes the choice for you? I don't know how the ForbiddenAPI check works, but that might be an option? If we don't do that, it feels like we'll inevitably get it back in the future. |
|
|
|
ForbiddenAPI checks at compile time, which feels better than runtime to me :-) |
|
I'm not sure which |
|
We're already using this project https://github.com/policeman-tools/forbidden-apis in Quarkus, there's multiple references to it, grep for |
We've used ForbiddenAPI in various extensions haven't we? |
|
We should definitely ban the version that doesn't require the boolean param |
geoand
left a comment
There was a problem hiding this comment.
Makes sense, but others should look at their respective parts as well
|
I've added a ban list and fixed a few more call sites. It will have to be reworked for Vert.x 5 as the |
This comment has been minimized.
This comment has been minimized.
Ladicek
left a comment
There was a problem hiding this comment.
I don't understand any of the modified code here, but the ban makes perfect sense to me 👍
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
0c67b87 to
f37ce4b
Compare
f37ce4b to
65fed83
Compare
This comment has been minimized.
This comment has been minimized.
|
|
|
@geoand I've rebased and tried locally, and |
65fed83 to
50460d2
Compare
Status for workflow
|
|
🎊 PR Preview 8201058 has been successfully built and deployed to https://quarkus-pr-main-54314-preview.surge.sh/version/main/guides/
|
This comment has been minimized.
This comment has been minimized.
This ensures each call to executeBlocking defines its ordering needs instead of inadvertently falling back to strict ordering. Fixes quarkusio#54088
Also catch a few more executeBlocking call sites.
…ordering forbidden APIs
50460d2 to
b087527
Compare

This ensures each call to executeBlocking defines its ordering needs instead of inadvertently falling back to strict ordering.