YARN-6987. Log app attempt during InvalidStateTransition. Contributed by Jonathan Eagles

This commit is contained in:
Jason Lowe 2017-08-14 14:40:08 -05:00
parent 6b09c32705
commit 3325ef653d
2 changed files with 4 additions and 2 deletions

View File

@ -888,7 +888,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 */
} }

View File

@ -911,7 +911,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 */
} }