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 @@ public class FederationInterceptor extends AbstractRequestInterceptor {
}
}
if (otherResponse.getApplicationPriority() != null) {
homeResponse.setApplicationPriority(
otherResponse.getApplicationPriority());
}
homeResponse.setNumClusterNodes(
homeResponse.getNumClusterNodes() + otherResponse.getNumClusterNodes());