YARN-9655. AllocateResponse in FederationInterceptor lost applicationPriority. (hunshenshi via wwei) closes apache/hadoop#1023

This commit is contained in:
Weiwei Yang 2019-06-29 00:08:03 +08:00
parent cbae241320
commit 5e7caf1287
1 changed files with 5 additions and 0 deletions

View File

@ -1446,6 +1446,11 @@ protected void mergeAllocateResponse(AllocateResponse homeResponse,
}
}
if (otherResponse.getApplicationPriority() != null) {
homeResponse.setApplicationPriority(
otherResponse.getApplicationPriority());
}
homeResponse.setNumClusterNodes(
homeResponse.getNumClusterNodes() + otherResponse.getNumClusterNodes());