Skip to content

[CELEBORN-2455] Remove redundant synchronized in Dispatcher.postMessage - #3840

Open
yew1eb wants to merge 1 commit into
apache:mainfrom
yew1eb:CELEBORN-2455
Open

[CELEBORN-2455] Remove redundant synchronized in Dispatcher.postMessage#3840
yew1eb wants to merge 1 commit into
apache:mainfrom
yew1eb:CELEBORN-2455

Conversation

@yew1eb

@yew1eb yew1eb commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Remove the redundant synchronized block around the first endpoints.get(endpointName) read in Dispatcher.postMessage.

Why are the changes needed?

endpoints is a ConcurrentHashMap, so the read is already thread-safe.

Does this PR resolve a correctness bug?

  • Yes

Does this PR introduce any user-facing change?

  • Yes

How was this patch tested?

Existing UTs.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant