Class TestTruncateTableProcedure.TruncateTableProcedureOnHDFSFailure

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.TruncateTableState>
org.apache.hadoop.hbase.master.procedure.TruncateTableProcedure
org.apache.hadoop.hbase.master.procedure.TestTruncateTableProcedure.TruncateTableProcedureOnHDFSFailure
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:
TestTruncateTableProcedure

public static class TestTruncateTableProcedure.TruncateTableProcedureOnHDFSFailure extends org.apache.hadoop.hbase.master.procedure.TruncateTableProcedure
  • Nested Class Summary

    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
    Modifier and Type
    Field
    Description
    private boolean
     

    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

    Constructors
    Constructor
    Description
     
    TruncateTableProcedureOnHDFSFailure(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env, org.apache.hadoop.hbase.TableName tableName, boolean preserveSplits)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.TruncateTableState state)
     

    Methods inherited from class org.apache.hadoop.hbase.master.procedure.TruncateTableProcedure

    completionCleanup, deserializeStateData, getFirstRegionInfo, getInitialState, getState, getStateId, getTableName, getTableOperationType, holdLock, isRollbackSupported, rollbackState, serializeStateData, toStringClassDetails

    Methods inherited from class org.apache.hadoop.hbase.master.procedure.AbstractStateMachineTableProcedure

    acquireLock, checkOnline, checkTableModifiable, getUser, getWALRegionDir, isTableEnabled, preflightChecks, releaseLock, releaseSyncLatch, setUser, 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, 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, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • TruncateTableProcedureOnHDFSFailure

    • TruncateTableProcedureOnHDFSFailure

      public TruncateTableProcedureOnHDFSFailure(org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env, org.apache.hadoop.hbase.TableName tableName, boolean preserveSplits) 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.TruncateTableState state) throws InterruptedException
      Overrides:
      executeFromState in class org.apache.hadoop.hbase.master.procedure.TruncateTableProcedure
      Throws:
      InterruptedException