TaskAttemptID taskAttemptId2 = new TaskAttemptID(jtIdentifier, 4, true, 1,
1);
// job actions which is localizing
KillJobAction jAction1 = new KillJobAction(jobId1);
RunningJob rjob1 = new RunningJob(jAction1.getJobID());
rjob1.localizing = false;
// add the job to the runningJobs tree
tt.runningJobs.put(jobId1, rjob1);
tt.addActionToCleanup(jAction1);
KillJobAction jAction2 = new KillJobAction(jobId2);
RunningJob rjob2 = new RunningJob(jAction2.getJobID());
rjob2.localizing = false;
// add the job to the runningJobs tree
tt.runningJobs.put(jobId2, rjob2);
tt.addActionToCleanup(jAction2);
// task action which is localizing
KillTaskAction tAction1 = new KillTaskAction(taskAttemptId1);
RunningJob rjob3 = new RunningJob(tAction1.getTaskID().getJobID());
// add the job to the runningJobs tree
tt.runningJobs.put(rjob3.getJobID(), rjob3);
rjob3.localizing = false;
tt.addActionToCleanup(tAction1);
KillTaskAction tAction2 = new KillTaskAction(taskAttemptId2);
RunningJob rjob4 = new RunningJob(tAction2.getTaskID().getJobID());
rjob4.localizing = false;
// add the job to the runningJobs tree
tt.runningJobs.put(rjob4.getJobID(), rjob4);
tt.addActionToCleanup(tAction2);
// before the task clean up test the queue
checkItemCountInQueue(tt, 4, 4, 0);