Class ModifyColumnFamilyStoreFileTrackerProcedure
java.lang.Object
org.apache.hadoop.hbase.procedure2.Procedure<TEnvironment>
org.apache.hadoop.hbase.procedure2.StateMachineProcedure<MasterProcedureEnv,TState>
org.apache.hadoop.hbase.master.procedure.AbstractStateMachineTableProcedure<org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.ModifyStoreFileTrackerState>
org.apache.hadoop.hbase.regionserver.storefiletracker.ModifyStoreFileTrackerProcedure
org.apache.hadoop.hbase.regionserver.storefiletracker.ModifyColumnFamilyStoreFileTrackerProcedure
- All Implemented Interfaces:
Comparable<Procedure<MasterProcedureEnv>>
,TableProcedureInterface
@Private
public class ModifyColumnFamilyStoreFileTrackerProcedure
extends ModifyStoreFileTrackerProcedure
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.procedure2.StateMachineProcedure
StateMachineProcedure.Flow
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.procedure2.Procedure
Procedure.LockState
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.master.procedure.TableProcedureInterface
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
ConstructorDescriptionModifyColumnFamilyStoreFileTrackerProcedure
(MasterProcedureEnv env, TableName tableName, byte[] family, String dstSFT) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.conf.Configuration
createConf
(org.apache.hadoop.conf.Configuration conf, TableDescriptor current) protected TableDescriptor
protected TableDescriptor
createMigrationTableDescriptor
(org.apache.hadoop.conf.Configuration conf, TableDescriptor current) protected TableDescriptor
createRestoreTableDescriptor
(TableDescriptor current, String restoreSFT) protected void
deserializeStateData
(ProcedureStateSerializer serializer) Called on store load to allow the user to decode the previously serialized state.protected void
preCheck
(TableDescriptor current) protected void
serializeStateData
(ProcedureStateSerializer serializer) The user-level code of the procedure may have some state to persist (e.g.Methods inherited from class org.apache.hadoop.hbase.regionserver.storefiletracker.ModifyStoreFileTrackerProcedure
executeFromState, finish, getInitialState, getState, getStateId, getTableName, getTableOperationType, isRollbackSupported, migrate, rollbackState
Methods inherited from class org.apache.hadoop.hbase.master.procedure.AbstractStateMachineTableProcedure
acquireLock, checkOnline, checkTableModifiable, getUser, getWALRegionDir, isTableEnabled, preflightChecks, releaseLock, releaseSyncLatch, setUser, toStringClassDetails, waitInitialized
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, setTimeoutFailure, shouldWaitClientAck, skipPersistence, suspend, toString, toStringClass, toStringDetails, toStringSimpleSB, updateMetricsOnFinish, updateMetricsOnSubmit, updateTimestamp, wasExecuted
-
Field Details
-
family
-
-
Constructor Details
-
ModifyColumnFamilyStoreFileTrackerProcedure
-
ModifyColumnFamilyStoreFileTrackerProcedure
public ModifyColumnFamilyStoreFileTrackerProcedure(MasterProcedureEnv env, TableName tableName, byte[] family, String dstSFT) throws HBaseIOException - Throws:
HBaseIOException
-
-
Method Details
-
preCheck
- Specified by:
preCheck
in classModifyStoreFileTrackerProcedure
- Throws:
IOException
-
createConf
protected org.apache.hadoop.conf.Configuration createConf(org.apache.hadoop.conf.Configuration conf, TableDescriptor current) - Specified by:
createConf
in classModifyStoreFileTrackerProcedure
-
createRestoreTableDescriptor
- Specified by:
createRestoreTableDescriptor
in classModifyStoreFileTrackerProcedure
-
createMigrationTableDescriptor
protected TableDescriptor createMigrationTableDescriptor(org.apache.hadoop.conf.Configuration conf, TableDescriptor current) - Specified by:
createMigrationTableDescriptor
in classModifyStoreFileTrackerProcedure
-
createFinishTableDescriptor
- Specified by:
createFinishTableDescriptor
in classModifyStoreFileTrackerProcedure
-
serializeStateData
Description copied from class:Procedure
The user-level code of the procedure may have some state to persist (e.g. input arguments or current position in the processing state) to be able to resume on failure.- Overrides:
serializeStateData
in classModifyStoreFileTrackerProcedure
- Parameters:
serializer
- stores the serializable state- Throws:
IOException
-
deserializeStateData
Description copied from class:Procedure
Called on store load to allow the user to decode the previously serialized state.- Overrides:
deserializeStateData
in classModifyStoreFileTrackerProcedure
- Parameters:
serializer
- contains the serialized state- Throws:
IOException
-