|
@@ -847,14 +847,16 @@ public class RMAppImpl implements RMApp, Recoverable {
|
|
// started or started but not yet saved.
|
|
// started or started but not yet saved.
|
|
if (app.attempts.isEmpty()) {
|
|
if (app.attempts.isEmpty()) {
|
|
app.scheduler.handle(new AppAddedSchedulerEvent(app.applicationId,
|
|
app.scheduler.handle(new AppAddedSchedulerEvent(app.applicationId,
|
|
- app.submissionContext.getQueue(), app.user));
|
|
|
|
|
|
+ app.submissionContext.getQueue(), app.user, app.submissionContext
|
|
|
|
+ .getReservationID()));
|
|
return RMAppState.SUBMITTED;
|
|
return RMAppState.SUBMITTED;
|
|
}
|
|
}
|
|
|
|
|
|
// Add application to scheduler synchronously to guarantee scheduler
|
|
// Add application to scheduler synchronously to guarantee scheduler
|
|
// knows applications before AM or NM re-registers.
|
|
// knows applications before AM or NM re-registers.
|
|
app.scheduler.handle(new AppAddedSchedulerEvent(app.applicationId,
|
|
app.scheduler.handle(new AppAddedSchedulerEvent(app.applicationId,
|
|
- app.submissionContext.getQueue(), app.user, true));
|
|
|
|
|
|
+ app.submissionContext.getQueue(), app.user, true,
|
|
|
|
+ app.submissionContext.getReservationID()));
|
|
|
|
|
|
// recover attempts
|
|
// recover attempts
|
|
app.recoverAppAttempts();
|
|
app.recoverAppAttempts();
|
|
@@ -881,7 +883,8 @@ public class RMAppImpl implements RMApp, Recoverable {
|
|
@Override
|
|
@Override
|
|
public void transition(RMAppImpl app, RMAppEvent event) {
|
|
public void transition(RMAppImpl app, RMAppEvent event) {
|
|
app.handler.handle(new AppAddedSchedulerEvent(app.applicationId,
|
|
app.handler.handle(new AppAddedSchedulerEvent(app.applicationId,
|
|
- app.submissionContext.getQueue(), app.user));
|
|
|
|
|
|
+ app.submissionContext.getQueue(), app.user, app.submissionContext
|
|
|
|
+ .getReservationID()));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|