[CELEBORN-2217] Use a separate thread to handle RpcEndpointVerifier messages#3554
Closed
TheodoreLx wants to merge 3 commits intoapache:mainfrom
Closed
[CELEBORN-2217] Use a separate thread to handle RpcEndpointVerifier messages#3554TheodoreLx wants to merge 3 commits intoapache:mainfrom
TheodoreLx wants to merge 3 commits intoapache:mainfrom
Conversation
SteNicholas
reviewed
Dec 3, 2025
| buildConf("celeborn.rpc.RpcEndpointVerifier.separate.enabled") | ||
| .categories("network") | ||
| .version("0.7.0") | ||
| .doc("dispatcher will process RpcEndpointVerifier's request separately") |
Member
There was a problem hiding this comment.
Suggested change
| .doc("dispatcher will process RpcEndpointVerifier's request separately") | |
| .doc("Whether to enable dispatcher process RpcEndpointVerifier's request separately.") |
| } | ||
|
|
||
| /** Message loop used for dispatching messages. */ | ||
| private class EndpointVerifierMessageLoop extends Runnable { |
Member
There was a problem hiding this comment.
Could you add some test case to verify?
Contributor
|
This pr look interesting to me. Can you share some test results for this PR? For example, are there any changes in the number of rpc look up timeout exception? |
Contributor
Author
Contributor
|
Thanks, Merge to main(v0.7.0) |
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.

What changes were proposed in this pull request?
An EndpointVerifierMessageLoop is introduced to specifically handle RpcEndpointVerifier messages, and a separate thread is used to execute the EndpointVerifierMessageLoop.
Why are the changes needed?
RpcEndpointVerifier.CheckExistence is a high-priority message that needs to be processed first. In the original model, if the LifecycleManager's RPC message queue accumulates a large backlog, RpcEndpointVerifier.CheckExistence messages cannot be processed immediately, leading to numerous ShuffleClient initialization failures and causing task failures.
Does this PR resolve a correctness bug?
No
Does this PR introduce any user-facing change?
No
How was this patch tested?
Cluster Test