MAPREDUCE-6852. Job#updateStatus() failed with NPE due to race condition. Contributed by Junping Du

This commit is contained in:
Jian He 2017-03-02 10:58:56 -08:00
parent cacaa299cf
commit b8b605bfc5
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ public class Job extends JobContextImpl implements JobContext {
this.status = ugi.doAs(new PrivilegedExceptionAction<JobStatus>() {
@Override
public JobStatus run() throws IOException, InterruptedException {
return cluster.getClient().getJobStatus(status.getJobID());
return cluster.getClient().getJobStatus(getJobID());
}
});
}