[
https://issues.apache.org/jira/browse/YARN-6432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15976037#comment-15976037
]
John Zhuge commented on YARN-6432:
----------------------------------
No problem [[email protected]].
In the addendum patch, you probably should use the following code as specified
by by [Map#putIfAbsent JDK8
doc|https://docs.oracle.com/javase/8/docs/api/java/util/Map.html#putIfAbsent-K-V-]
bq. If the specified key is not already associated with a value (or is mapped
to null)..."
{code}
if (get(key) == null) {
put(key, value);
}
{code}
You can see [my patch posted to
YARN-6501|https://issues.apache.org/jira/secure/attachment/12864183/YARN-6501.branch-2.001.patch].
> FairScheduler: Reserve preempted resources for corresponding applications
> -------------------------------------------------------------------------
>
> Key: YARN-6432
> URL: https://issues.apache.org/jira/browse/YARN-6432
> Project: Hadoop YARN
> Issue Type: Sub-task
> Reporter: Miklos Szegedi
> Assignee: Miklos Szegedi
> Fix For: 2.9.0, 3.0.0-alpha3
>
> Attachments: YARN-6432.000.patch, YARN-6432.001.patch,
> YARN-6432.002.patch, YARN-6432.branch-2.addendum.patch,
> YARN-6432.branch-2.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]