Skip to content

Move blocking random UUID generation to executor thread to keep pipeline reactive#400

Closed
Arooba-git wants to merge 1 commit into
vert-x3:masterfrom
Arooba-git:fix-blocking-call
Closed

Move blocking random UUID generation to executor thread to keep pipeline reactive#400
Arooba-git wants to merge 1 commit into
vert-x3:masterfrom
Arooba-git:fix-blocking-call

Conversation

@Arooba-git
Copy link
Copy Markdown

Hi! 👋
Apparently the PoolOptions class has a blocking operation in its constructor that blocks the vertx event loop (as detected by BlockHound):
Screen Shot 2023-07-16 at 5 49 04 PM
This PR fixes the blocking code to ensure the event loop remains non-blocking.

@vietj
Copy link
Copy Markdown
Contributor

vietj commented Jul 16, 2023

I think we already have soemthing similar for RNG generation in vertx-auth, perhaps we can reuse it ? cc @pmlopes

@vietj vietj added this to the 5.0.0 milestone Jul 16, 2023
@tsegismont
Copy link
Copy Markdown
Member

@vietj we have several places in the Vert.x stack where we generate UUIDs, I don't believe it is necessary to use VertxContextPRNG for that.

@Arooba-git if you want to use blockhound, consider allowing some blocking calls
See https://github.com/reactor/BlockHound/blob/master/docs/customization.md

@vietj
Copy link
Copy Markdown
Contributor

vietj commented Jul 19, 2023

@tsegismont we can discuss that next friday maybe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants