[
https://issues.apache.org/jira/browse/YARN-6794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16517650#comment-16517650
]
Miklos Szegedi commented on YARN-6794:
--------------------------------------
Thank you for the update [~haibochen].
{code}
519 writeLock.lock();
520 attemptOpportunisticResourceUsage.decUsed(resource);
521 attemptResourceUsage.incUsed(resource);
522 getQueue().incUsedGuaranteedResource(resource);
523 writeLock.unlock();
{code}
It is safer to unlock in a finally to handle runtime exceptions properly.
> Fair Scheduler to explicitly promote OPPORTUNISITIC containers locally at the
> node where they're running
> --------------------------------------------------------------------------------------------------------
>
> Key: YARN-6794
> URL: https://issues.apache.org/jira/browse/YARN-6794
> Project: Hadoop YARN
> Issue Type: Sub-task
> Components: nodemanager, scheduler
> Reporter: Haibo Chen
> Assignee: Haibo Chen
> Priority: Major
> Attachments: YARN-6794-YARN-1011.00.patch,
> YARN-6794-YARN-1011.01.patch, YARN-6794-YARN-1011.prelim.patch
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]