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

AbstractYarnScheduler.getApplicationAttempt seems misleading, and there're some misuse of it

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • resourcemanager
    • None

    Description

      I'm not familiar with scheduler, with first eyes, I thought this func returns the schdulerAppAttempt info corresponding to appAttemptId, but actually it returns the current schdulerAppAttempt.
      It seems misled others too, such as
      TestWorkPreservingRMRestart.waitForNumContainersToRecover
      MockRM.waitForSchedulerAppAttemptAdded
      should I rename it to T getCurrentSchedulerApplicationAttempt(ApplicationId applicationid)
      or returns null if current attempt id not equals to the request attempt id ?
      comment preferred!

      Attachments

        Activity

          People

            Unassigned Unassigned
            sandflee sandflee
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: