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