HBASE-16507 Procedure v2 - Force DDL operation to always roll forward (addendum)

This commit is contained in:
Matteo Bertozzi 2016-09-18 19:37:46 -07:00
parent 4faa8ea934
commit 9c58d26d3b
1 changed files with 2 additions and 1 deletions

View File

@ -105,8 +105,9 @@ public abstract class StateMachineProcedure<TEnvironment, TState>
protected void setNextState(final TState state) { protected void setNextState(final TState state) {
if (aborted.get() && isRollbackSupported(getCurrentState())) { if (aborted.get() && isRollbackSupported(getCurrentState())) {
setAbortFailure(getClass().getSimpleName(), "abort requested"); setAbortFailure(getClass().getSimpleName(), "abort requested");
} else {
setNextState(getStateId(state));
} }
setNextState(getStateId(state));
} }
/** /**