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.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0, 2.5.0, 2.4.1
    • 2.8.0, 3.0.0-alpha1
    • None
    • None
    • 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 -v2.patch
          3 kB
          Xu Yang
        2. YARN-2454.patch
          3 kB
          Xu Yang
        3. YARN-2454-patch.diff
          0.9 kB
          Beckham007

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: