HBASE-16507 Procedure v2 - Force DDL operation to always roll forward (addendum)
This commit is contained in:
parent
4faa8ea934
commit
9c58d26d3b
|
@ -105,9 +105,10 @@ 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));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* By default, the executor will try ro run all the steps of the procedure start to finish.
|
* By default, the executor will try ro run all the steps of the procedure start to finish.
|
||||||
|
|
Loading…
Reference in New Issue