rm.sendAMLaunched(appAttemptId); rm.drainEvents();
rm.sendAMLaunched(appAttemptId); rm.drainEvents();
rm.sendAMLaunched(appAttemptId); rm.drainEvents();
rm.sendAMLaunched(appAttemptId); rm.drainEvents();
rm.sendAMLaunched(appAttemptId); rm.drainEvents();
.getAppAttemptId(); final ApplicationId appId = app.getApplicationId(); rm.sendAMLaunched(appAttemptId); rm.drainEvents();
rm.sendAMLaunched(appAttemptId); rm.drainEvents();
rm.sendAMLaunched(appAttemptId); rm.drainEvents();
rm.sendAMLaunched(appAttemptId); rm.drainEvents();
rm.sendAMLaunched(appAttemptId); rm.drainEvents();
rm.sendAMLaunched(appAttemptId); rm.drainEvents();
rm.sendAMLaunched(appAttemptId); rm.drainEvents();
rm.sendAMLaunched(appAttemptId); rm.drainEvents();
rm.sendAMLaunched(appAttemptId); rm.drainEvents();
rm.sendAMLaunched(appAttemptId); rm.drainEvents();
rm.sendAMLaunched(appAttemptId); rm.drainEvents();
final ApplicationAttemptId appAttemptId = app.getCurrentAppAttempt() .getAppAttemptId(); rm.sendAMLaunched(appAttemptId); rm.drainEvents(); final JobId jobId = MRBuilderUtils
rm1.sendAMLaunched(appAttemptId); rm1.drainEvents();
rm.sendAMLaunched(appAttemptId); rm.drainEvents();
@Test(expected = RMContainerAllocationException.class) public void testAttemptNotFoundCausesRMCommunicatorException() throws Exception { Configuration conf = new Configuration(); MyResourceManager rm = new MyResourceManager(conf); rm.start(); // Submit the application RMApp app = rm.submitApp(1024); rm.drainEvents(); MockNM amNodeManager = rm.registerNode("amNM:1234", 2048); amNodeManager.nodeHeartbeat(true); rm.drainEvents(); ApplicationAttemptId appAttemptId = app.getCurrentAppAttempt() .getAppAttemptId(); rm.sendAMLaunched(appAttemptId); rm.drainEvents(); JobId jobId = MRBuilderUtils.newJobId(appAttemptId.getApplicationId(), 0); Job mockJob = mock(Job.class); when(mockJob.getReport()).thenReturn( MRBuilderUtils.newJobReport(jobId, "job", "user", JobState.RUNNING, 0, 0, 0, 0, 0, 0, 0, "jobfile", null, false, "")); MyContainerAllocator allocator = new MyContainerAllocator(rm, conf, appAttemptId, mockJob); // Now kill the application rm.killApp(app.getApplicationId()); rm.waitForState(app.getApplicationId(), RMAppState.KILLED); allocator.schedule(); }