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

Improve MAPREDUCE-3789's fix logic by looking at job's slot demands instead

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.0
    • 1.1.0
    • capacity-sched
    • None
    • Reviewed

    Description

      In MAPREDUCE-3789, the fix had unfortunately only covered the first time assignment scenario, and the test had not really caught the mistake of using the condition of looking at available TT slots (instead of looking for how many slots a job's task demands).

      We should change the condition of reservation in such a manner:

                if ((getPendingTasks(j) != 0 &&
                     !hasSufficientReservedTaskTrackers(j)) &&
      -                (taskTracker.getAvailableSlots(type) !=
      +                !(j.getNumSlotsPerTask(type) >
                        getTTMaxSlotsForType(taskTrackerStatus, type))) {
      

      I had not realized during the earlier ticket that j.getNumSlotsPerTask(type) did exist.

      Attachments

        1. MAPREDUCE-4001.patch
          0.9 kB
          Harsh J

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            qwertymaniac Harsh J
            qwertymaniac Harsh J
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment