hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lindongdong (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-9376) too many ContainerIdComparator is not necessary
Date Mon, 11 Mar 2019 12:19:00 GMT
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.

/* set of containers that need to be cleaned */
private final Set<ContainerId> containersToClean = new TreeSet<ContainerId>(
    new ContainerIdComparator());


This message was sent by Atlassian JIRA

To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org

View raw message