YARN-6987. Log app attempt during InvalidStateTransition. Contributed by Jonathan Eagles
(cherry picked from commit 3325ef653d
)
This commit is contained in:
parent
de50bb6365
commit
00e51a9cd3
|
@ -805,7 +805,8 @@ public class RMAppImpl implements RMApp, Recoverable {
|
||||||
/* keep the master in sync with the state machine */
|
/* keep the master in sync with the state machine */
|
||||||
this.stateMachine.doTransition(event.getType(), event);
|
this.stateMachine.doTransition(event.getType(), event);
|
||||||
} catch (InvalidStateTransitionException e) {
|
} catch (InvalidStateTransitionException e) {
|
||||||
LOG.error("Can't handle this event at current state", e);
|
LOG.error("App: " + appID
|
||||||
|
+ " can't handle this event at current state", e);
|
||||||
/* TODO fail the application on the failed transition */
|
/* TODO fail the application on the failed transition */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -864,7 +864,8 @@ public class RMAppAttemptImpl implements RMAppAttempt, Recoverable {
|
||||||
/* keep the master in sync with the state machine */
|
/* keep the master in sync with the state machine */
|
||||||
this.stateMachine.doTransition(event.getType(), event);
|
this.stateMachine.doTransition(event.getType(), event);
|
||||||
} catch (InvalidStateTransitionException e) {
|
} catch (InvalidStateTransitionException e) {
|
||||||
LOG.error("Can't handle this event at current state", e);
|
LOG.error("App attempt: " + appAttemptID
|
||||||
|
+ " can't handle this event at current state", e);
|
||||||
/* TODO fail the application on the failed transition */
|
/* TODO fail the application on the failed transition */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue