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

applicationComparator improvement for CS

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.3-alpha
    • 2.1.0-beta
    • scheduler
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: