-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.7.0, 2.6.1, 3.0.0-alpha1
-
Component/s: timelineserver
-
Labels:
-
Target Version/s:
When generating app report in ApplicationHistoryManagerOnTimelineStore, it checks if appAttempt == null.
ApplicationAttemptReport appAttempt = getApplicationAttempt(app.appReport.getCurrentApplicationAttemptId()); if (appAttempt != null) { app.appReport.setHost(appAttempt.getHost()); app.appReport.setRpcPort(appAttempt.getRpcPort()); app.appReport.setTrackingUrl(appAttempt.getTrackingUrl()); app.appReport.setOriginalTrackingUrl(appAttempt.getOriginalTrackingUrl()); }
However, getApplicationAttempt doesn't return null but throws ApplicationAttemptNotFoundException:
if (entity == null) { throw new ApplicationAttemptNotFoundException( "The entity for application attempt " + appAttemptId + " doesn't exist in the timeline store"); } else { return convertToApplicationAttemptReport(entity); }
They code isn't coupled well.