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

RMAppAttemptImpl should return the DummyApplicationResourceUsageReport for all invalid accesses

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.5.0
    • Component/s: resourcemanager
    • Labels:
    • Target Version/s:
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: