public static class TestCreateTableProcedure.FaultyCreateTableProcedure extends CreateTableProcedure
CreateTableProcedure.CreateHdfsRegions
StateMachineProcedure.Flow
TableProcedureInterface.TableOperationType
Constructor and Description |
---|
FaultyCreateTableProcedure() |
FaultyCreateTableProcedure(MasterProcedureEnv env,
HTableDescriptor hTableDescriptor,
HRegionInfo[] newRegions) |
Modifier and Type | Method and Description |
---|---|
protected void |
rollbackState(MasterProcedureEnv env,
MasterProcedureProtos.CreateTableState state)
called to perform the rollback of the specified state
|
abort, acquireLock, addRegionsToMeta, addTableToMeta, assignRegions, createFsLayout, createFsLayout, deserializeStateData, executeFromState, getInitialState, getState, getStateId, getTableName, getTableOperationType, releaseLock, serializeStateData, setNextState, toStringClassDetails, updateTableDescCache
execute, rollback
addStackIndex, beforeReplay, childrenCountDown, compareTo, completionCleanup, convert, convert, createProcedureInfo, doExecute, doRollback, elapsedTime, getException, getLastUpdate, getOwner, getParentProcId, getProcId, getResult, getRootProcedureId, getStackIndexes, getStartTime, getState, getTimeout, getTimeRemaining, hasException, hasOwner, hasParent, hasTimeout, incChildrenLatch, isFailed, isFinished, isSuccess, isWaiting, newInstance, removeStackIndex, setAbortFailure, setChildrenLatch, setFailure, setFailure, setOwner, setParentProcId, setProcId, setResult, setStackIndexes, setStartTime, setState, setTimeout, setTimeoutFailure, toString, toStringClass, updateTimestamp, validateClass, wasExecuted
public FaultyCreateTableProcedure()
public FaultyCreateTableProcedure(MasterProcedureEnv env, HTableDescriptor hTableDescriptor, HRegionInfo[] newRegions) throws IOException
IOException
protected void rollbackState(MasterProcedureEnv env, MasterProcedureProtos.CreateTableState state) throws IOException
StateMachineProcedure
rollbackState
in class CreateTableProcedure
state
- state to rollbackIOException
- temporary failure, the rollback will retry later