public TaskInProgress run() {
return job.getTaskInProgress(taskid.getTaskID());
}
});
if (tip == null) {
throw new TaskAttemptNotFoundException();
}
TaskStatus status = assumeUserContextAndExecute(ctx, new PrivilegedAction<TaskStatus>() {
public TaskStatus run() {
return tip.getTaskStatus(taskid);
}
});
if (status == null) {
throw new TaskAttemptNotFoundException();
}
assumeUserContextAndExecute(ctx, new PrivilegedExceptionAction<Void>() {
public Void run() throws java.io.IOException {
// Second parameter means always kill, don't fail