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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • resourcemanager
    • None
    • 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.patch
          15 kB
          Naganarasimha G R
        2. YARN-4078.20150915-2.patch
          15 kB
          Naganarasimha G R

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: