Accesses to CompletedJobStore should not lock the JobTracker.
-------------------------------------------------------------

                 Key: HADOOP-4375
                 URL: https://issues.apache.org/jira/browse/HADOOP-4375
             Project: Hadoop Core
          Issue Type: Bug
            Reporter: Vinod K V



When CompletedJobStatusStore is configured to use dfs, it can cause lockup of 
JT due to inline dfs access.
For e.g.
{code}
  public synchronized JobStatus getJobStatus(JobID jobid) {
    JobInProgress job = jobs.get(jobid);
    if (job != null) {
      return job.getStatus();
    } else {
      return completedJobStatusStore.readJobStatus(jobid);
    }
  }
{code}

Instead, JT should be locked only when accessing its internal memory 
structures. The other such methods are JobTracker.getJobCounters, 
JobTracker.getJobProfile and JobTracker.finalizeJob.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to