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

getPendingResourceRequestForAttempt is present in AbstractYarnScheduler should be present in YarnScheduler interface instead

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: resourcemanager
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Currently getPendingResourceRequestForAttempt is present in AbstractYarnScheduler.
      But in AppInfo, we are calling this method by typecasting it to AbstractYarnScheduler, which is incorrect.

      Because if a custom scheduler is to be added, it will implement YarnScheduler, not AbstractYarnScheduler.

      This method should be moved to YarnScheduler or it should have a guarded check like in other places (RMAppAttemptBlock.getBlackListedNodes)

        Attachments

        1. YARN-4078.20150915-2.patch
          15 kB
          Naganarasimha G R
        2. YARN-4078.20150915.patch
          15 kB
          Naganarasimha G R

          Issue Links

            Activity

              People

              • Assignee:
                Naganarasimha Naganarasimha G R
                Reporter:
                Naganarasimha Naganarasimha G R
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: