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

View File

@ -323,7 +323,7 @@ synchronized void updateStatus() throws IOException {
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());
}
});
}