|
@@ -896,6 +896,9 @@ public class RMAppImpl implements RMApp, Recoverable {
|
|
|
//TODO recover collector address.
|
|
|
//this.collectorAddr = appState.getCollectorAddr();
|
|
|
|
|
|
+ // send the ATS create Event
|
|
|
+ sendATSCreateEvent(this, this.startTime);
|
|
|
+
|
|
|
for(int i=0; i<appState.getAttemptCount(); ++i) {
|
|
|
// create attempt
|
|
|
createNewAttempt();
|
|
@@ -1838,16 +1841,20 @@ public class RMAppImpl implements RMApp, Recoverable {
|
|
|
}
|
|
|
return amNodeLabelExpression;
|
|
|
}
|
|
|
+<<<<<<< 93f2f13bc1c25fa441a3819c98b7073fca45b07a
|
|
|
|
|
|
@Override
|
|
|
public CallerContext getCallerContext() {
|
|
|
return callerContext;
|
|
|
}
|
|
|
+=======
|
|
|
+>>>>>>> YARN-4392. ApplicationCreatedEvent event time resets after RM
|
|
|
|
|
|
private void sendATSCreateEvent(RMApp app, long startTime) {
|
|
|
rmContext.getRMApplicationHistoryWriter().applicationStarted(app);
|
|
|
rmContext.getSystemMetricsPublisher().appCreated(app, startTime);
|
|
|
}
|
|
|
+<<<<<<< 93f2f13bc1c25fa441a3819c98b7073fca45b07a
|
|
|
|
|
|
@VisibleForTesting
|
|
|
public boolean isAmBlacklistingEnabled() {
|
|
@@ -1858,4 +1865,6 @@ public class RMAppImpl implements RMApp, Recoverable {
|
|
|
public float getAmBlacklistingDisableThreshold() {
|
|
|
return blacklistDisableThreshold;
|
|
|
}
|
|
|
+=======
|
|
|
+>>>>>>> YARN-4392. ApplicationCreatedEvent event time resets after RM
|
|
|
}
|