forked from apache/celeborn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CELEBORN-1421] Refine code in master to reduce unnecessary sync to g…
…et workers/lostworkers/shutdownWorkers ### 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 Closes apache#2507 from RexXiong/CELEBORN-1421. Authored-by: Shuang <[email protected]> Signed-off-by: SteNicholas <[email protected]>
- Loading branch information
1 parent
9908035
commit 8a10a2d
Showing
3 changed files
with
16 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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