YARN-5754. Null check missing for earliest in FifoPolicy. (Yufei Gu via kasha)

This commit is contained in:
Karthik Kambatla 2016-10-24 22:19:14 -07:00
parent 3372e94030
commit a71fc81655

View File

@ -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,