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

Add detail log for ApplicationAttemptNotFoundException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • resourcemanager

    Description

           Suppose user A killed the app, then ApplicationMasterService will  call unregisterAttempt() for this app. Sometimes, app's AM continues to call the alloate() method and reports an error as follows.

      Application attempt appattempt_1582520281010_15271_000001 doesn't exist in ApplicationMasterService cache.
      

          If user B has been watching the AM log, he will be confused why the attempt is no longer in the ApplicationMasterService cache. So I think we can add detail log for ApplicationAttemptNotFoundException as follows.

      Application attempt appattempt_1582630210671_14658_000001 doesn't exist in ApplicationMasterService cache.App state: KILLED,finalStatus: KILLED ,diagnostics: App application_1582630210671_14658 killed by userA from 127.0.0.1
      

      Attachments

        1. YARN-10166-001.patch
          1 kB
          Youquan Lin
        2. YARN-10166-002.patch
          1 kB
          Youquan Lin
        3. YARN-10166-003.patch
          1 kB
          Youquan Lin
        4. YARN-10166-004.patch
          1 kB
          Youquan Lin

        Activity

          People

            Youquan Lin Youquan Lin
            Youquan Lin Youquan Lin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: