Tao Yang created YARN-7527:
------------------------------
Summary: Over-allocate node resource in async-scheduling mode of
CapacityScheduler
Key: YARN-7527
URL: https://issues.apache.org/jira/browse/YARN-7527
Project: Hadoop YARN
Issue Type: Bug
Components: capacityscheduler
Affects Versions: 3.0.0-alpha4, 2.9.1
Reporter: Tao Yang
Assignee: Tao Yang
Currently in async-scheduling mode of CapacityScheduler, node resource may be
over-allocated since node resource check is ignored.
{{FiCaSchedulerApp#commonCheckContainerAllocation}} will check whether this
node have enough available resource for this proposal and return check result
(ture/false), but this result is ignored in {{CapacityScheduler#accept}} as
below.
{noformat}
commonCheckContainerAllocation(allocation, schedulerContainer);
{noformat}
If {{FiCaSchedulerApp#commonCheckContainerAllocation}} returns false,
{{CapacityScheduler#accept}} should also return false as below:
{noformat}
if (!commonCheckContainerAllocation(allocation, schedulerContainer)) {
return false;
}
{noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]