yew1eb opened a new pull request, #3840:
URL: https://github.com/apache/celeborn/pull/3840

   
   
   ### 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?
   
   <!-- Check if yes. The `correctness` label will be added/removed 
automatically. -->
   - [ ] Yes
   
   ### Does this PR introduce _any_ user-facing change?
   
   <!-- Check if yes. -->
   - [ ] Yes
   
   
   ### How was this patch tested?
   Existing UTs.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to