Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-1963 Support priorities across applications within the same queue
  3. YARN-5802

updateApplicationPriority api in scheduler should ensure to re-insert app to correct ordering policy

    Details

    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      LeafQueue#updateApplicationPriority

       getOrderingPolicy().removeSchedulableEntity(attempt);
      
            // Update new priority in SchedulerApplication
            attempt.setPriority(newAppPriority);
      
            getOrderingPolicy().addSchedulableEntity(attempt);
      

      We should add again to ordering policy only when attempt available in first case.Else during application attempt removal will try to iterate on killed application still available in pending Ordering policy.Which can cause RM to crash.

        Attachments

        1. YARN-5802.0001.patch
          1 kB
          Bibin A Chundatt
        2. YARN-5802.0002.patch
          8 kB
          Bibin A Chundatt
        3. YARN-5802.0003.patch
          9 kB
          Bibin A Chundatt
        4. YARN-5802.0004.patch
          8 kB
          Bibin A Chundatt
        5. YARN-5802.0005.patch
          9 kB
          Bibin A Chundatt
        6. YARN-5802.0006.patch
          9 kB
          Bibin A Chundatt
        7. YARN-5802.branch-2.8.0001.patch
          9 kB
          Bibin A Chundatt

          Activity

            People

            • Assignee:
              bibinchundatt Bibin A Chundatt
              Reporter:
              bibinchundatt Bibin A Chundatt
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: