public static class TestModifyPeerProcedureRetryBackoff.TestModifyPeerProcedure extends org.apache.hadoop.hbase.master.replication.ModifyPeerProcedure
org.apache.hadoop.hbase.procedure2.StateMachineProcedure.Flow
SLEEP_INTERVAL_MS, UPDATE_LAST_SEQ_ID_BATCH_SIZE
Constructor and Description |
---|
TestModifyPeerProcedure() |
TestModifyPeerProcedure(String peerId) |
Modifier and Type | Method and Description |
---|---|
protected <T extends org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>> |
addChildProcedure(T... subProcedure) |
protected void |
enablePeer(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) |
protected boolean |
enablePeerBeforeFinish() |
org.apache.hadoop.hbase.master.procedure.PeerProcedureInterface.PeerOperationType |
getPeerOperationType() |
protected org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.PeerModificationState |
nextStateAfterRefresh() |
protected void |
postPeerModification(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) |
protected void |
prePeerModification(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) |
protected void |
reopenRegions(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) |
private void |
tryFail() |
protected void |
updateLastPushedSequenceIdForSerialPeer(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) |
protected void |
updatePeerStorage(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) |
executeFromState, getInitialState, getNewPeerConfig, getOldPeerConfig, getState, getStateId, rollbackState, setLastPushedSequenceId, setLastPushedSequenceIdForTable, setTimeoutFailure
acquireLock, deserializeStateData, getLatch, getPeerId, holdLock, releaseLock, serializeStateData, waitInitialized
abort, execute, failIfAborted, getCurrentState, getCurrentStateId, getCycles, isEofState, isRollbackSupported, isYieldAfterExecutionStep, isYieldBeforeExecuteFromState, rollback, setNextState, toStringState
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, incChildrenLatch, isBypass, isFailed, isFinished, isInitializing, isLockedWhenLoading, isRunnable, isSuccess, isWaiting, removeStackIndex, setAbortFailure, setChildrenLatch, setFailure, setFailure, setLastUpdate, setNonceKey, setOwner, setOwner, setParentProcId, setProcId, setResult, setRootProcId, setStackIndexes, setState, setSubmittedTime, setTimeout, shouldWaitClientAck, skipPersistence, toString, toStringClass, toStringClassDetails, toStringDetails, toStringSimpleSB, updateMetricsOnFinish, updateMetricsOnSubmit, updateTimestamp, wasExecuted
public TestModifyPeerProcedure()
public TestModifyPeerProcedure(String peerId)
public org.apache.hadoop.hbase.master.procedure.PeerProcedureInterface.PeerOperationType getPeerOperationType()
private void tryFail() throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationException
protected <T extends org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>> void addChildProcedure(T... subProcedure)
addChildProcedure
in class org.apache.hadoop.hbase.procedure2.StateMachineProcedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv,org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.PeerModificationState>
protected org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.PeerModificationState nextStateAfterRefresh()
nextStateAfterRefresh
in class org.apache.hadoop.hbase.master.replication.ModifyPeerProcedure
protected boolean enablePeerBeforeFinish()
enablePeerBeforeFinish
in class org.apache.hadoop.hbase.master.replication.ModifyPeerProcedure
protected void updateLastPushedSequenceIdForSerialPeer(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) throws IOException, org.apache.hadoop.hbase.replication.ReplicationException
updateLastPushedSequenceIdForSerialPeer
in class org.apache.hadoop.hbase.master.replication.ModifyPeerProcedure
IOException
org.apache.hadoop.hbase.replication.ReplicationException
protected void reopenRegions(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) throws IOException
reopenRegions
in class org.apache.hadoop.hbase.master.replication.ModifyPeerProcedure
IOException
protected void enablePeer(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) throws org.apache.hadoop.hbase.replication.ReplicationException
enablePeer
in class org.apache.hadoop.hbase.master.replication.ModifyPeerProcedure
org.apache.hadoop.hbase.replication.ReplicationException
protected void prePeerModification(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) throws IOException, org.apache.hadoop.hbase.replication.ReplicationException
prePeerModification
in class org.apache.hadoop.hbase.master.replication.ModifyPeerProcedure
IOException
org.apache.hadoop.hbase.replication.ReplicationException
protected void updatePeerStorage(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) throws org.apache.hadoop.hbase.replication.ReplicationException
updatePeerStorage
in class org.apache.hadoop.hbase.master.replication.ModifyPeerProcedure
org.apache.hadoop.hbase.replication.ReplicationException
protected void postPeerModification(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env) throws IOException, org.apache.hadoop.hbase.replication.ReplicationException
postPeerModification
in class org.apache.hadoop.hbase.master.replication.ModifyPeerProcedure
IOException
org.apache.hadoop.hbase.replication.ReplicationException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.