@Deprecated @InterfaceAudience.Private public class UnassignProcedure extends RegionTransitionProcedure
TransitRegionStateProcedure
Procedure.LockState
TableProcedureInterface.TableOperationType
Modifier and Type | Field and Description |
---|---|
protected ServerName |
destinationServer
Deprecated.
|
protected ServerName |
hostingServer
Deprecated.
|
private boolean |
removeAfterUnassigning
Deprecated.
|
aborted
NO_PROC_ID, NO_TIMEOUT
Constructor and Description |
---|
UnassignProcedure()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
deserializeStateData(ProcedureStateSerializer serializer)
Deprecated.
Called on store load to allow the user to decode the previously serialized state.
|
protected void |
finishTransition(MasterProcedureEnv env,
RegionStateNode regionNode)
Deprecated.
|
protected ProcedureMetrics |
getProcedureMetrics(MasterProcedureEnv env)
Deprecated.
Override this method to provide procedure specific counters for submitted count, failed count
and time histogram.
|
TableProcedureInterface.TableOperationType |
getTableOperationType()
Deprecated.
Given an operation type we can take decisions about what to do with pending operations.
|
protected boolean |
isRollbackSupported(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.RegionTransitionState state)
Deprecated.
|
Optional<RemoteProcedureDispatcher.RemoteOperation> |
remoteCallBuild(MasterProcedureEnv env,
ServerName serverName)
Deprecated.
For building the remote operation.
|
protected boolean |
remoteCallFailed(MasterProcedureEnv env,
RegionStateNode regionNode,
IOException exception)
Deprecated.
Returns If true, we will re-wake up this procedure; if false, the procedure stays suspended.
|
protected void |
reportTransition(MasterProcedureEnv env,
RegionStateNode regionNode,
org.apache.hadoop.hbase.shaded.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode code,
long seqId)
Deprecated.
|
protected void |
serializeStateData(ProcedureStateSerializer serializer)
Deprecated.
The user-level code of the procedure may have some state to persist (e.g.
|
protected boolean |
startTransition(MasterProcedureEnv env,
RegionStateNode regionNode)
Deprecated.
|
void |
toStringClassDetails(StringBuilder sb)
Deprecated.
Extend the toString() information with the procedure details e.g.
|
protected boolean |
updateTransition(MasterProcedureEnv env,
RegionStateNode regionNode)
Deprecated.
|
abort, execute, getAttempt, getProcName, getRegionInfo, getRegionState, getTableName, getTransitionState, isMeta, remoteCallFailed, remoteOperationCompleted, remoteOperationFailed, rollback, setAttempt, setRegionInfo, setTransitionState, toStringState
acquireLock, addStackIndex, afterReplay, beforeReplay, bypass, compareTo, completionCleanup, doExecute, doRollback, elapsedTime, getChildrenLatch, getException, getLastUpdate, getNonceKey, getOwner, getParentProcId, getProcId, getProcIdHashCode, 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, isYieldAfterExecutionStep, releaseLock, removeStackIndex, setAbortFailure, setChildrenLatch, setFailure, setFailure, setLastUpdate, setNonceKey, setOwner, setOwner, setParentProcId, setProcId, setResult, setRootProcId, setStackIndexes, setState, setSubmittedTime, setTimeout, setTimeoutFailure, shouldWaitClientAck, skipPersistence, toString, toStringClass, toStringDetails, toStringSimpleSB, updateMetricsOnFinish, updateMetricsOnSubmit, updateTimestamp, waitInitialized, wasExecuted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
storeInDispatchedQueue
protected volatile ServerName hostingServer
protected volatile ServerName destinationServer
private boolean removeAfterUnassigning
public UnassignProcedure()
public TableProcedureInterface.TableOperationType getTableOperationType()
TableProcedureInterface
protected boolean isRollbackSupported(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.RegionTransitionState state)
isRollbackSupported
in class RegionTransitionProcedure
protected void serializeStateData(ProcedureStateSerializer serializer) throws IOException
Procedure
serializeStateData
in class Procedure<MasterProcedureEnv>
serializer
- stores the serializable stateIOException
protected void deserializeStateData(ProcedureStateSerializer serializer) throws IOException
Procedure
deserializeStateData
in class Procedure<MasterProcedureEnv>
serializer
- contains the serialized stateIOException
protected boolean startTransition(MasterProcedureEnv env, RegionStateNode regionNode)
startTransition
in class RegionTransitionProcedure
protected boolean updateTransition(MasterProcedureEnv env, RegionStateNode regionNode) throws IOException
updateTransition
in class RegionTransitionProcedure
IOException
protected void finishTransition(MasterProcedureEnv env, RegionStateNode regionNode) throws IOException
finishTransition
in class RegionTransitionProcedure
IOException
public Optional<RemoteProcedureDispatcher.RemoteOperation> remoteCallBuild(MasterProcedureEnv env, ServerName serverName)
RemoteProcedureDispatcher.RemoteProcedure
remoteCallBuild
in interface RemoteProcedureDispatcher.RemoteProcedure<MasterProcedureEnv,ServerName>
remoteCallBuild
in class RegionTransitionProcedure
protected void reportTransition(MasterProcedureEnv env, RegionStateNode regionNode, org.apache.hadoop.hbase.shaded.protobuf.generated.RegionServerStatusProtos.RegionStateTransition.TransitionCode code, long seqId) throws UnexpectedStateException
reportTransition
in class RegionTransitionProcedure
UnexpectedStateException
protected boolean remoteCallFailed(MasterProcedureEnv env, RegionStateNode regionNode, IOException exception)
remoteCallFailed
in class RegionTransitionProcedure
public void toStringClassDetails(StringBuilder sb)
Procedure
toStringClassDetails
in class RegionTransitionProcedure
sb
- the string builder to use to append the proc specific informationprotected ProcedureMetrics getProcedureMetrics(MasterProcedureEnv env)
Procedure
getProcedureMetrics
in class Procedure<MasterProcedureEnv>
env
- The environment passed to the procedure executorCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.