lindongdong created YARN-9376:
---------------------------------

             Summary: too many ContainerIdComparator is not necessary
                 Key: YARN-9376
                 URL: https://issues.apache.org/jira/browse/YARN-9376
             Project: Hadoop YARN
          Issue Type: Improvement
          Components: resourcemanager
    Affects Versions: 3.1.2, 3.1.1
            Reporter: lindongdong


 

One RMNodeImpl will create a new ContainerIdComparator instance, but it is not 
necessary.

we may keep a static ContainerIdComparator instance is enough.

org.apache.hadoop.yarn.server.resourcemanager.rmnode.RMNodeImpl#containersToClean
{code:java}
/* set of containers that need to be cleaned */
private final Set<ContainerId> containersToClean = new TreeSet<ContainerId>(
    new ContainerIdComparator());
{code}
 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to