Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-4236

JobTracker.killJob() fails to kill a job if the job is not yet initialized

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.19.0
    • Fix Version/s: 0.19.0
    • Component/s: None
    • Labels:
      None

      Description

      HADOOP-3864 made the following changes to JobTracker.killJob()

         public synchronized void killJob(JobID jobid) {
           JobInProgress job = jobs.get(jobid);
      -    job.kill();
      +    if (job.inited()) {
      +      job.kill();
      +    }
         }
      

      This is a bug as a job will not get killed if its not yet initialized.

        Attachments

        1. 4236_v1.patch
          4 kB
          Sharad Agarwal
        2. 4236_v2.patch
          4 kB
          Sharad Agarwal
        3. 4236_v3.patch
          9 kB
          Sharad Agarwal
        4. 4236_v4.patch
          9 kB
          Sharad Agarwal
        5. 4236_v5.patch
          10 kB
          Sharad Agarwal

          Issue Links

            Activity

              People

              • Assignee:
                sharadag Sharad Agarwal
                Reporter:
                amar_kamat Amar Kamat
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: