Browse Source

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

(cherry picked from commit 28ad20a711735243bc10b10e33866dc525f415eb)
Weiwei Yang 6 năm trước cách đây
mục cha
commit
b64e9df949

+ 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

@@ -1662,7 +1662,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);