YARN-9262. TestRMAppAttemptTransitions is failing with an NPE. Contributed by lujie.
(cherry picked from commit 28ad20a711
)
This commit is contained in:
parent
99876a5ab8
commit
b64e9df949
|
@ -1662,7 +1662,7 @@ public class TestRMAppAttemptTransitions {
|
||||||
when(allocation.getContainers()).
|
when(allocation.getContainers()).
|
||||||
thenReturn(Collections.singletonList(container));
|
thenReturn(Collections.singletonList(container));
|
||||||
when(scheduler.allocate(any(ApplicationAttemptId.class), any(List.class),
|
when(scheduler.allocate(any(ApplicationAttemptId.class), any(List.class),
|
||||||
any(List.class), any(List.class), any(List.class), any(List.class),
|
any(), any(), any(), any(),
|
||||||
any(ContainerUpdates.class))).
|
any(ContainerUpdates.class))).
|
||||||
thenReturn(allocation);
|
thenReturn(allocation);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue