YARN-9655. AllocateResponse in FederationInterceptor lost applicationPriority. Contributed by hunshenshi.
(cherry picked from commit 570eee30e5
)
This commit is contained in:
parent
4f622ecad8
commit
46b81a982b
|
@ -1292,6 +1292,11 @@ public class FederationInterceptor extends AbstractRequestInterceptor {
|
|||
}
|
||||
}
|
||||
|
||||
if (otherResponse.getApplicationPriority() != null) {
|
||||
homeResponse.setApplicationPriority(
|
||||
otherResponse.getApplicationPriority());
|
||||
}
|
||||
|
||||
homeResponse.setNumClusterNodes(
|
||||
homeResponse.getNumClusterNodes() + otherResponse.getNumClusterNodes());
|
||||
|
||||
|
|
|
@ -668,6 +668,7 @@ public class TestFederationInterceptor extends BaseAMRMProxyTest {
|
|||
Assert.assertEquals(1, response.getNMTokens().size());
|
||||
Assert.assertEquals(1, response.getUpdatedContainers().size());
|
||||
Assert.assertEquals(1, response.getUpdateErrors().size());
|
||||
Assert.assertNotNull(response.getApplicationPriority());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue