YARN-5754. Null check missing for earliest in FifoPolicy. (Yufei Gu via kasha)
This commit is contained in:
parent
3372e94030
commit
a71fc81655
@ -96,8 +96,11 @@ public void computeShares(Collection<? extends Schedulable> schedulables,
|
||||
earliest = schedulable;
|
||||
}
|
||||
}
|
||||
|
||||
if (earliest != null) {
|
||||
earliest.setFairShare(Resources.clone(totalResources));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void computeSteadyShares(Collection<? extends FSQueue> queues,
|
||||
|
Loading…
Reference in New Issue
Block a user