Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4385

FairScheduler.maxTasksToAssign() should check for fairscheduler.assignmultiple.maps < TaskTracker.availableSlots

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.3
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      FairScheduler.maxTasksToAssign() can potentially return a value greater than the available slots. Currently, we rely on canAssignMaps()/canAssignReduces() to reject such requests.

      These additional calls can be avoided by check against the available slots in maxTasksToAssign().

      1. MR-4385.patch
        5 kB
        Karthik Kambatla

        Activity

        Karthik Kambatla (Inactive) created issue -
        Hide
        Karthik Kambatla (Inactive) added a comment -

        Uploading a straight-forward patch that returns the minimum of availableSlots() and the number of tasks requested as per config file.

        Testing:

        • Didn't add additional tests
        • Ran TestFairScheduler
        Show
        Karthik Kambatla (Inactive) added a comment - Uploading a straight-forward patch that returns the minimum of availableSlots() and the number of tasks requested as per config file. Testing: Didn't add additional tests Ran TestFairScheduler
        Karthik Kambatla (Inactive) made changes -
        Field Original Value New Value
        Attachment MR-4385.patch [ 12533888 ]
        Karthik Kambatla (Inactive) made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12533888/MR-4385.patch
        against trunk revision .

        +1 @author. The patch does not contain any @author tags.

        -1 tests included. The patch doesn't appear to include any new or modified tests.
        Please justify why no new tests are needed for this patch.
        Also please list what manual steps were performed to verify this patch.

        -1 patch. The patch command could not apply the patch.

        Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2534//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12533888/MR-4385.patch against trunk revision . +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. -1 patch. The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2534//console This message is automatically generated.
        Hide
        Karthik Kambatla (Inactive) added a comment -

        Added TestFairScheduler.testMaxTasksToAssign()

        Show
        Karthik Kambatla (Inactive) added a comment - Added TestFairScheduler.testMaxTasksToAssign()
        Karthik Kambatla (Inactive) made changes -
        Attachment MR-4385.patch [ 12534461 ]
        Karthik Kambatla (Inactive) made changes -
        Attachment MR-4385.patch [ 12533888 ]
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12534461/MR-4385.patch
        against trunk revision .

        +1 @author. The patch does not contain any @author tags.

        +1 tests included. The patch appears to include 1 new or modified test files.

        -1 patch. The patch command could not apply the patch.

        Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2540//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12534461/MR-4385.patch against trunk revision . +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 1 new or modified test files. -1 patch. The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2540//console This message is automatically generated.
        Alejandro Abdelnur made changes -
        Issue Type Improvement [ 4 ] Bug [ 1 ]
        Hide
        Alejandro Abdelnur added a comment -

        +1

        Show
        Alejandro Abdelnur added a comment - +1
        Hide
        Alejandro Abdelnur added a comment -

        Thanks Karthik. Committed to branch-1.

        Show
        Alejandro Abdelnur added a comment - Thanks Karthik. Committed to branch-1.
        Alejandro Abdelnur made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Fix Version/s 1.2.0 [ 12321661 ]
        Resolution Fixed [ 1 ]
        Hide
        Matt Foley added a comment -

        Closed upon release of Hadoop 1.2.0.

        Show
        Matt Foley added a comment - Closed upon release of Hadoop 1.2.0.
        Matt Foley made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Gavin made changes -
        Assignee Karthik Kambatla [ kkambatl ] Karthik Kambatla [ kasha ]
        Gavin made changes -
        Reporter Karthik Kambatla [ kkambatl ] Karthik Kambatla [ kasha ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        1d 12m 1 Karthik Kambatla (Inactive) 29/Jun/12 21:48
        Patch Available Patch Available Resolved Resolved
        5d 20h 7m 1 Alejandro Abdelnur 05/Jul/12 17:55
        Resolved Resolved Closed Closed
        313d 12h 20m 1 Matt Foley 15/May/13 06:16

          People

          • Assignee:
            Karthik Kambatla
            Reporter:
            Karthik Kambatla
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development