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

Diagnostics is delayed to passed to ApplicationReport

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      The diagnostics of Application may be delayed to pass to ApplicationReport. Here's one example when ApplicationStatus has changed to FAILED, but the diagnostics is still empty. And the next call of getApplicationReport could get the diagnostics.

      while(true) {
              appReport = yarnClient.getApplicationReport(appId);
              Thread.sleep(1000);
              LOG.info("AppStatus:" + appReport.getFinalApplicationStatus());
              LOG.info("Diagnostics:" + appReport.getDiagnostics());
              ....
      }
      

      Output:

      AppStatus:FAILED
      Diagnostics: // empty
      
      // get diagnostics for the next getApplicationReport
      AppStatus:FAILED
      Diagnostics: // diagnostics info here
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zjffdu Jeff Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: