diff --git hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/scheduler/TestContainerSchedulerQueuing.java hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/scheduler/TestContainerSchedulerQueuing.java index 5c72e7e8b4f..7cce09baf41 100644 --- hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/scheduler/TestContainerSchedulerQueuing.java +++ hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/scheduler/TestContainerSchedulerQueuing.java @@ -224,19 +224,21 @@ public void setup() throws IOException { public void testStartMultipleContainers() throws Exception { containerManager.start(); - ContainerLaunchContext containerLaunchContext = + ContainerLaunchContext containerLaunchContext1 = recordFactory.newRecordInstance(ContainerLaunchContext.class); - List list = new ArrayList<>(); list.add(StartContainerRequest.newInstance( - containerLaunchContext, + containerLaunchContext1, createContainerToken(createContainerId(0), DUMMY_RM_IDENTIFIER, context.getNodeId(), user, BuilderUtils.newResource(1024, 1), context.getContainerTokenSecretManager(), null, ExecutionType.GUARANTEED))); + + ContainerLaunchContext containerLaunchContext2 = + recordFactory.newRecordInstance(ContainerLaunchContext.class); list.add(StartContainerRequest.newInstance( - containerLaunchContext, + containerLaunchContext2, createContainerToken(createContainerId(1), DUMMY_RM_IDENTIFIER, context.getNodeId(), user, BuilderUtils.newResource(1024, 1),