Преглед изворни кода

YARN-9262. TestRMAppAttemptTransitions is failing with an NPE. Contributed by lujie.

Weiwei Yang пре 6 година
родитељ
комит
28ad20a711

+ 1 - 1
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/rmapp/attempt/TestRMAppAttemptTransitions.java

@@ -1656,7 +1656,7 @@ public class TestRMAppAttemptTransitions {
     when(allocation.getContainers()).
         thenReturn(Collections.singletonList(container));
     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))).
         thenReturn(allocation);