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

   …et workers/lostworkers/shutdownWorkers.
   
   <!--
   Thanks for sending a pull request!  Here are some tips for you:
     - Make sure the PR title start w/ a JIRA ticket, e.g. '[CELEBORN-XXXX] 
Your PR title ...'.
     - Be sure to keep the PR description updated to reflect all changes.
     - Please write your PR title to summarize what this PR proposes.
     - If possible, provide a concise example to reproduce the issue for a 
faster review.
   -->
   
   ### What changes were proposed in this pull request?
   
   1. Use ConcurrentSet to replace ArrayList for workers.
   2. Remove unnecessary sync and snapshot when get 
workers/lostworkers/shutdownWorkers
   
   
   ### Why are the changes needed?
   
   1. Reduce unnecessary sync to get workers/lostworkers/shutdownWorkers.
   2. Somewhere in the Master, directly using statusSystem.workers(ArrayList) 
is not safe, potentially leading to concurrent modification issues.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Pass GA
   


-- 
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