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,7 +96,10 @@ public class FifoPolicy extends SchedulingPolicy {
|
||||||
earliest = schedulable;
|
earliest = schedulable;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
earliest.setFairShare(Resources.clone(totalResources));
|
|
||||||
|
if (earliest != null) {
|
||||||
|
earliest.setFairShare(Resources.clone(totalResources));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue