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

JobTracker.setJobPriority() doesn't check for a jobID lookup failing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 0.19.0, 0.20.0
    • None
    • None
    • None

    Description

      Looking at the entry points of the JobTracker API, it seems that JobTracker.setJobPriority() doesnt expect the JobID lookup ever to return null

      It goes straight from lookup to checking access, an operation that assumes that job!=null
      JobInProgress job = jobs.get(jobid);
      checkAccess(job, QueueManager.QueueOperation.ADMINISTER_JOBS);

      Recommend: add a test that calls this operaton with an invalid jobID, then fix the code as appropriate

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: