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 eeca8b0c4e
commit 747bafaf96
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());
}
});
}