Class TestCreateTableProcedure.CreateTableProcedureOnHDFSFailure
java.lang.Object
org.apache.hadoop.hbase.procedure2.Procedure<TEnvironment>
org.apache.hadoop.hbase.procedure2.StateMachineProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,TState>
org.apache.hadoop.hbase.master.procedure.AbstractStateMachineTableProcedure<org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CreateTableState>
org.apache.hadoop.hbase.master.procedure.CreateTableProcedure
org.apache.hadoop.hbase.master.procedure.TestCreateTableProcedure.CreateTableProcedureOnHDFSFailure
- All Implemented Interfaces:
Comparable<org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>>
,org.apache.hadoop.hbase.master.procedure.TableProcedureInterface
- Enclosing class:
- TestCreateTableProcedure
public static class TestCreateTableProcedure.CreateTableProcedureOnHDFSFailure
extends org.apache.hadoop.hbase.master.procedure.CreateTableProcedure
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.master.procedure.CreateTableProcedure
org.apache.hadoop.hbase.master.procedure.CreateTableProcedure.CreateHdfsRegions
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.procedure2.StateMachineProcedure
org.apache.hadoop.hbase.procedure2.StateMachineProcedure.Flow
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.procedure2.Procedure
org.apache.hadoop.hbase.procedure2.Procedure.LockState
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.master.procedure.TableProcedureInterface
org.apache.hadoop.hbase.master.procedure.TableProcedureInterface.TableOperationType
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.procedure2.StateMachineProcedure
stateCount
Fields inherited from class org.apache.hadoop.hbase.procedure2.Procedure
NO_PROC_ID, NO_TIMEOUT
-
Constructor Summary
ConstructorDescriptionCreateTableProcedureOnHDFSFailure
(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env, org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor, org.apache.hadoop.hbase.client.RegionInfo[] newRegions) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.hbase.procedure2.StateMachineProcedure.Flow
executeFromState
(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env, org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CreateTableState state) Methods inherited from class org.apache.hadoop.hbase.master.procedure.CreateTableProcedure
addTableToMeta, createFsLayout, createFsLayout, deserializeStateData, getFirstRegionInfo, getInitialState, getState, getStateId, getTableName, getTableOperationType, isRollbackSupported, rollbackState, serializeStateData, setEnabledState, setEnablingState, setTimeoutFailure, shouldWaitClientAck, waitInitialized
Methods inherited from class org.apache.hadoop.hbase.master.procedure.AbstractStateMachineTableProcedure
acquireLock, checkOnline, checkTableModifiable, getUser, getWALRegionDir, isTableEnabled, preflightChecks, releaseLock, releaseSyncLatch, setUser, toStringClassDetails
Methods inherited from class org.apache.hadoop.hbase.procedure2.StateMachineProcedure
abort, addChildProcedure, execute, failIfAborted, getCurrentState, getCurrentStateId, getCycles, isEofState, isRollbackSupported, isYieldAfterExecutionStep, isYieldBeforeExecuteFromState, rollback, setNextState, toStringState
Methods inherited from class org.apache.hadoop.hbase.procedure2.Procedure
addStackIndex, afterReplay, beforeReplay, bypass, compareTo, completionCleanup, doExecute, doRollback, elapsedTime, getChildrenLatch, getException, getLastUpdate, getNonceKey, getOwner, getParentProcId, getProcedureMetrics, getProcId, getProcIdHashCode, getProcName, getResult, getRootProcedureId, getRootProcId, getStackIndexes, getState, getSubmittedTime, getTimeout, getTimeoutTimestamp, hasChildren, hasException, hasLock, hasOwner, hasParent, hasTimeout, haveSameParent, holdLock, incChildrenLatch, isBypass, isFailed, isFinished, isInitializing, isLockedWhenLoading, isRunnable, isSuccess, isWaiting, removeStackIndex, setAbortFailure, setChildrenLatch, setExecuted, setFailure, setFailure, setLastUpdate, setNonceKey, setOwner, setOwner, setParentProcId, setProcId, setResult, setRootProcId, setStackIndexes, setState, setSubmittedTime, setTimeout, skipPersistence, suspend, toString, toStringClass, toStringDetails, toStringSimpleSB, updateMetricsOnFinish, updateMetricsOnSubmit, updateTimestamp, wasExecuted
-
Field Details
-
failOnce
-
-
Constructor Details
-
CreateTableProcedureOnHDFSFailure
public CreateTableProcedureOnHDFSFailure() -
CreateTableProcedureOnHDFSFailure
public CreateTableProcedureOnHDFSFailure(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env, org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor, org.apache.hadoop.hbase.client.RegionInfo[] newRegions) throws org.apache.hadoop.hbase.HBaseIOException - Throws:
org.apache.hadoop.hbase.HBaseIOException
-
-
Method Details
-
executeFromState
protected org.apache.hadoop.hbase.procedure2.StateMachineProcedure.Flow executeFromState(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env, org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CreateTableState state) throws InterruptedException, org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException - Overrides:
executeFromState
in classorg.apache.hadoop.hbase.master.procedure.CreateTableProcedure
- Throws:
InterruptedException
org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException
-