From dac0811c13a517a7960f32b104d80af8f47e6609 Mon Sep 17 00:00:00 2001 From: ChaosJu Date: Fri, 18 Feb 2022 14:56:43 +0800 Subject: [PATCH] YARN-11077. containersToClean not need to use TreeSet In RMNodeImpl --- .../hadoop/yarn/server/resourcemanager/rmnode/RMNodeImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmnode/RMNodeImpl.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmnode/RMNodeImpl.java index b8aaea5de33..27372208b58 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmnode/RMNodeImpl.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmnode/RMNodeImpl.java @@ -163,8 +163,7 @@ public class RMNodeImpl implements RMNode, EventHandler { new HashSet(); /* set of containers that need to be cleaned */ - private final Set containersToClean = new TreeSet( - new ContainerIdComparator()); + private final Set containersToClean = new HashSet(); /* set of containers that need to be signaled */ private final List containersToSignal =