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

Fix the currentAppAttemptId error in AHS when an application is running

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • timelineserver
    • None

    Description

      When I using the REST API of the AHS to get a running app's latest attempt id, it always returns a invalid id like appattempt_1516873125047_0013_-000001

      But when the app is finished, the RM will push a finished event which contains the latest attempt id to TimelineServer, so the id will transitive to a correct one in the end of the application. 

      I think as the app is running, this value should be a correct one, so I add the latest attempt id in the other info of the app's entity when the app trans to RUNNING state. Then the AHS will use this value to set the currentAppAttemptId.

       

      Attachments

        1. image-2018-01-26-14-35-09-796.png
          5 kB
          Jinjiang Ling
        2. YARN-7820.001.patch
          3 kB
          Jinjiang Ling
        3. YARN-7820.003.patch
          7 kB
          Jinjiang Ling
        4. YARN-7820.003.patch
          7 kB
          Jinjiang Ling
        5. YARN-7820.003.patch
          7 kB
          Jinjiang Ling

        Activity

          People

            lingjinjiang Jinjiang Ling
            lingjinjiang Jinjiang Ling
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: