Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-2454

Fix compareTo of variable UNBOUNDED in o.a.h.y.util.resource.Resources.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 2.5.0, 2.4.1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The variable UNBOUNDED implement the abstract class Resources, and override the function compareTo. But there is something wrong in this function. We should not compare resources with zero as the same as the variable NONE. We should change 0 to Integer.MAX_VALUE.

        Attachments

        1. YARN-2454.patch
          3 kB
          Xu Yang
        2. YARN-2454-patch.diff
          0.9 kB
          Beckham007
        3. YARN-2454 -v2.patch
          3 kB
          Xu Yang

          Activity

            People

            • Assignee:
              yxls123123 Xu Yang
              Reporter:
              yxls123123 Xu Yang
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: