Use vertx blockingHandlers to run Bookkeeper http handlers which could be blocking#4266
Merged
hezhangjian merged 1 commit intoApr 8, 2024
Conversation
dao-jun
approved these changes
Apr 3, 2024
Ghatage
approved these changes
Apr 4, 2024
hangc0276
approved these changes
Apr 8, 2024
hezhangjian
approved these changes
Apr 8, 2024
hezhangjian
pushed a commit
that referenced
this pull request
May 24, 2024
### Motivation - The http handler implementations in Bookkeeper aren't necessarily non-blocking. That's why they should be executed on the blocking thread pool in vertx. ### Changes Executing on blocking thread pool in vertx can be achieved by registering the handlers using the `blockingHandler` method instead of the `handler` method.
hezhangjian
pushed a commit
that referenced
this pull request
May 25, 2024
### Motivation - The http handler implementations in Bookkeeper aren't necessarily non-blocking. That's why they should be executed on the blocking thread pool in vertx. ### Changes Executing on blocking thread pool in vertx can be achieved by registering the handlers using the `blockingHandler` method instead of the `handler` method. (cherry picked from commit 15a3840)
Ghatage
pushed a commit
to sijie/bookkeeper
that referenced
this pull request
Jul 12, 2024
…he#4266) ### Motivation - The http handler implementations in Bookkeeper aren't necessarily non-blocking. That's why they should be executed on the blocking thread pool in vertx. ### Changes Executing on blocking thread pool in vertx can be achieved by registering the handlers using the `blockingHandler` method instead of the `handler` method.
Contributor
|
In our case, we are using We found that if we update the code to: then the http requests could be run concurrently by updating the second parameter I am not sure why the bookie process all the http request by a single thread. Is it necessarily? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Changes
Executing on blocking thread pool in vertx can be achieved by registering the handlers using the
blockingHandlermethod instead of thehandlermethod.