[
https://issues.apache.org/jira/browse/YARN-9376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zhankun Tang updated YARN-9376:
-------------------------------
Bulk update: Preparing for 3.1.3 release. Moved the incorrect "3.1.2"
non-blocker issues to 3.1.4, please move back to 3.1.3 if it is a blocker.
> too many ContainerIdComparator instances are 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.1, 3.1.2
> Reporter: lindongdong
> Assignee: lindongdong
> Priority: Minor
> Attachments: YARN-9376.000.patch
>
>
> One RMNodeImpl will create a new ContainerIdComparator instance, but it is
> not necessary.
> we may keep a static ContainerIdComparator instance and it 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
(v8.3.2#803003)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]