YARN-11077. containersToClean not need to use TreeSet In RMNodeImpl

This commit is contained in:
ChaosJu 2022-02-18 14:56:43 +08:00 committed by chaosju
parent de526e166c
commit dac0811c13
1 changed files with 1 additions and 2 deletions

View File

@ -163,8 +163,7 @@ public class RMNodeImpl implements RMNode, EventHandler<RMNodeEvent> {
new HashSet<ContainerId>();
/* set of containers that need to be cleaned */
private final Set<ContainerId> containersToClean = new TreeSet<ContainerId>(
new ContainerIdComparator());
private final Set<ContainerId> containersToClean = new HashSet<ContainerId>();
/* set of containers that need to be signaled */
private final List<SignalContainerRequest> containersToSignal =