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

Priority#compareTo method seems to be wrong.

    XMLWordPrintableJSON

    Details

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

      Description

      if lower int value means higher priority, shouldn't we "return other.getPriority() - this.getPriority() "

        Attachments

        1. YARN-881.1.patch
          3 kB
          Jian He
        2. YARN-881.patch
          3 kB
          Jian He

          Activity

            People

            • Assignee:
              jianhe Jian He
              Reporter:
              jianhe Jian He
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: