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

RMAppAttemptImpl should return the DummyApplicationResourceUsageReport for all invalid accesses

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.0
    • 2.5.0
    • resourcemanager
    • Reviewed

    Description

      RMAppImpl has a DUMMY_APPLICATION_RESOURCE_USAGE_REPORT to return when the caller of createAndGetApplicationReport doesn't have access.

      RMAppAttemptImpl should have something similar for getApplicationResourceUsageReport.

      It also might make sense to put the dummy report into ApplicationResourceUsageReport and allow both to use it.

      A test would also be useful to verify that RMAppAttemptImpl#getApplicationResourceUsageReport doesn't return null if the scheduler doesn't have a report to return.

      Attachments

        1. YARN1424-04.patch
          13 kB
          Ray Chiang
        2. YARN1424-03.patch
          13 kB
          Ray Chiang
        3. YARN1424-02.patch
          12 kB
          Ray Chiang
        4. YARN1424-01.patch
          6 kB
          Ray Chiang

        Activity

          People

            rchiang Ray Chiang
            sandyr Sandy Ryza
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: