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

The function compareTo of variable UNBOUNDED in org.apache.hadoop.yarn.util.resource.Resources is defined wrong.

    XMLWordPrintableJSON

Details

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

    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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: