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