YARN-11560. Fix NPE bug when multi-node enabled with schedule asynchronously (#6021). Contributed by wangzhongwei.
This commit is contained in:
parent
ae63d8edd5
commit
f5345b881d
@ -1737,6 +1737,10 @@ private CSAssignment allocateContainerOnSingleNode(
|
|||||||
|
|
||||||
private void allocateFromReservedContainer(FiCaSchedulerNode node,
|
private void allocateFromReservedContainer(FiCaSchedulerNode node,
|
||||||
boolean withNodeHeartbeat, RMContainer reservedContainer) {
|
boolean withNodeHeartbeat, RMContainer reservedContainer) {
|
||||||
|
if(reservedContainer == null){
|
||||||
|
LOG.warn("reservedContainer is null, that may be unreserved by the proposal judgment thread");
|
||||||
|
return;
|
||||||
|
}
|
||||||
FiCaSchedulerApp reservedApplication = getCurrentAttemptForContainer(
|
FiCaSchedulerApp reservedApplication = getCurrentAttemptForContainer(
|
||||||
reservedContainer.getContainerId());
|
reservedContainer.getContainerId());
|
||||||
if (reservedApplication == null) {
|
if (reservedApplication == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user