Class TestSnapshotProcedure

java.lang.Object
org.apache.hadoop.hbase.master.procedure.TestSnapshotProcedure
Direct Known Subclasses:
TestSnapshotProcedureBasicSnapshot, TestSnapshotProcedureConcurrently, TestSnapshotProcedureMasterRestarts, TestSnapshotProcedureRIT, TestSnapshotProcedureRSCrashes, TestSnapshotProcedureSnapshotCorrupted

public class TestSnapshotProcedure extends Object
  • Field Details

    • LOG

      protected static final org.slf4j.Logger LOG
    • CLASS_RULE

      public static final HBaseClassTestRule CLASS_RULE
    • TEST_UTIL

      protected static HBaseTestingUtil TEST_UTIL
    • master

      protected org.apache.hadoop.hbase.master.HMaster master
    • TABLE_NAME

      protected org.apache.hadoop.hbase.TableName TABLE_NAME
    • CF

      protected byte[] CF
    • SNAPSHOT_NAME

      protected String SNAPSHOT_NAME
    • snapshot

      protected org.apache.hadoop.hbase.client.SnapshotDescription snapshot
    • snapshotProto

      protected org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshotProto
  • Constructor Details

  • Method Details

    • setup

      public void setup() throws Exception
      Throws:
      Exception
    • waitProcedureRunnableAndGetFirst

      public <T extends org.apache.hadoop.hbase.procedure2.Procedure<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>> T waitProcedureRunnableAndGetFirst(Class<T> clazz, long timeout) throws IOException
      Throws:
      IOException
    • getDelayedOnSpecificStateSnapshotProcedure

      protected org.apache.hadoop.hbase.master.procedure.SnapshotProcedure getDelayedOnSpecificStateSnapshotProcedure(org.apache.hadoop.hbase.master.procedure.SnapshotProcedure sp, org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv env, org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.SnapshotState state) throws org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException, org.apache.hadoop.hbase.procedure2.ProcedureYieldException, InterruptedException
      Throws:
      org.apache.hadoop.hbase.procedure2.ProcedureSuspendedException
      org.apache.hadoop.hbase.procedure2.ProcedureYieldException
      InterruptedException
    • teardown

      public void teardown() throws Exception
      Throws:
      Exception