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

Limit filter in ApplicationBaseProtocol#getApplications should return latest applications

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • resourcemanager

    Description

      When ever limit filter is used to get application report using ApplicationBaseProtocol#getApplications, the applications retrieved are not the latest. The retrieved applications are random based on the hashcode.

      The reason for above problem is RM maintains the apps in MAP where in insertion of application id is based on the hashcode. So if there are 10 applications from app-1 to app-10 and then limit is 5, then supposed to expect that applications from app-6 to app-10 should be retrieved. But now some first 5 apps in the MAP are retrieved. So applications retrieved are random 5!!

      I think limit should retrieve latest applications only.

      Attachments

        1. YARN-4988-wip.patch
          7 kB
          Rohith Sharma K S

        Activity

          People

            rohithsharma Rohith Sharma K S
            rohithsharma Rohith Sharma K S
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated: