Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4878

JobID.forName() isn't strict enough

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Later
    • None
    • None
    • None
    • None

    Description

      If you have a job running as job_201208221603_0003, and then try to kill a job passing id job_201208221603_003, it will kill job_201208221603_0003 because the last part of the JobID is parsed as an integer. We should make JobID.forName() stricter to prevent this and similar situations as the current behavior isn't so obvious.

      More specifically, we shouldn't accept JobIDs if the last part of the JobID is:
      - less than 4 characters (e.g. _003, _123)
      - more than 4 characters and has a leading zero (e.g. _00003, _01234)

      Attachments

        1. HADOOP-9065.patch
          4 kB
          Robert Kanter
        2. HADOOP-9065_branch-1.patch
          4 kB
          Robert Kanter

        Activity

          People

            rkanter Robert Kanter
            rkanter Robert Kanter
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: