deepujain opened a new pull request, #8389: URL: https://github.com/apache/hadoop/pull/8389
Summary This PR makes FairScheduler preemption tracking thread-safe by synchronizing mutable access in `FSPreemptionThread`. Change - `hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/FSPreemptionThread.java`: synchronize `PreemptableContainers` mutation and iteration so concurrent preemption bookkeeping cannot hit `ConcurrentModificationException`. - `hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/TestFSPreemptionThread.java`: add a regression test that hammers concurrent add and iterate access. JIRA Fixes YARN-11851 -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
