YARN-5678. Log demand as demand in FSLeafQueue and FSParentQueue. (Yufei Gu via kasha)
This commit is contained in:
parent
fe9ebe20ab
commit
82857037b6
|
@ -295,7 +295,7 @@ public class FSLeafQueue extends FSQueue {
|
|||
Resource toAdd = sched.getDemand();
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Counting resource from " + sched.getName() + " " + toAdd
|
||||
+ "; Total resource consumption for " + getName() + " now "
|
||||
+ "; Total resource demand for " + getName() + " now "
|
||||
+ demand);
|
||||
}
|
||||
demand = Resources.add(demand, toAdd);
|
||||
|
|
|
@ -158,13 +158,13 @@ public class FSParentQueue extends FSQueue {
|
|||
for (FSQueue childQueue : childQueues) {
|
||||
childQueue.updateDemand();
|
||||
Resource toAdd = childQueue.getDemand();
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Counting resource from " + childQueue.getName() + " " +
|
||||
toAdd + "; Total resource consumption for " + getName() +
|
||||
" now " + demand);
|
||||
}
|
||||
demand = Resources.add(demand, toAdd);
|
||||
demand = Resources.componentwiseMin(demand, maxShare);
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Counting resource from " + childQueue.getName() + " " +
|
||||
toAdd + "; Total resource demand for " + getName() +
|
||||
" now " + demand);
|
||||
}
|
||||
if (Resources.equals(demand, maxShare)) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue