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

applicationComparator improvement for CS

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.3-alpha
    • Fix Version/s: 2.1.0-beta
    • Component/s: scheduler
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Now the compare code is :
      return a1.getApplicationId().getId() - a2.getApplicationId().getId();

      Will be replaced with :
      return a1.getApplicationId().compareTo(a2.getApplicationId());

      This will bring some benefits:
      1,leave applicationId compare logic to ApplicationId class;
      2,In future's HA mode,cluster time stamp may change,ApplicationId class already takes care of this condition.

        Attachments

        1. YARN-447-trunk.patch
          5 kB
          Nemon Lou
        2. YARN-447-trunk.patch
          6 kB
          Nemon Lou
        3. YARN-447-trunk.patch
          6 kB
          Nemon Lou
        4. YARN-447-trunk.patch
          6 kB
          Nemon Lou
        5. YARN-447-trunk.patch
          6 kB
          Nemon Lou

          Activity

            People

            • Assignee:
              nemon Nemon Lou
              Reporter:
              nemon Nemon Lou
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: