YARN-5754. Null check missing for earliest in FifoPolicy. (Yufei Gu via kasha)
(cherry picked from commit a71fc81655
)
This commit is contained in:
parent
5c2f67bdae
commit
ab9105d814
|
@ -96,8 +96,11 @@ public class FifoPolicy extends SchedulingPolicy {
|
||||||
earliest = schedulable;
|
earliest = schedulable;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (earliest != null) {
|
||||||
earliest.setFairShare(Resources.clone(totalResources));
|
earliest.setFairShare(Resources.clone(totalResources));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void computeSteadyShares(Collection<? extends FSQueue> queues,
|
public void computeSteadyShares(Collection<? extends FSQueue> queues,
|
||||||
|
|
Loading…
Reference in New Issue