From 41bdcf41105dcbd837c7454467f68e730b72adec Mon Sep 17 00:00:00 2001 From: Weiwei Yang Date: Sat, 2 Feb 2019 23:02:45 +0800 Subject: [PATCH] YARN-9262. TestRMAppAttemptTransitions is failing with an NPE. Contributed by lujie. (cherry picked from commit 28ad20a711735243bc10b10e33866dc525f415eb) --- .../rmapp/attempt/TestRMAppAttemptTransitions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/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 b/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 index faecdb46607..f5f8b766ae8 100644 --- a/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 +++ b/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);