Class TestTruncateTableProcedure
java.lang.Object
org.apache.hadoop.hbase.master.procedure.TestTableDDLProcedureBase
org.apache.hadoop.hbase.master.procedure.TestTruncateTableProcedure
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.Loggerorg.junit.rules.TestNameFields inherited from class org.apache.hadoop.hbase.master.procedure.TestTableDDLProcedureBase
UTIL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidsplitAndTruncate(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.client.RegionInfo[] regions, int regionReplication) private voidtestOnHDFSFailure(org.apache.hadoop.hbase.TableName tableName, boolean preserveSplits) voidvoidprivate voidtestRecoveryAndDoubleExecution(org.apache.hadoop.hbase.TableName tableName, boolean preserveSplits) voidvoidprivate voidtestSimpleTruncate(org.apache.hadoop.hbase.TableName tableName, boolean preserveSplits) voidvoidvoidvoidvoidvoidMethods inherited from class org.apache.hadoop.hbase.master.procedure.TestTableDDLProcedureBase
cleanupTest, getMaster, getMasterProcedureExecutor, resetProcExecutorTestingKillFlag, setup, setupCluster, tearDown
-
Field Details
-
CLASS_RULE
-
LOG
-
name
-
-
Constructor Details
-
TestTruncateTableProcedure
public TestTruncateTableProcedure()
-
-
Method Details
-
testTruncateNotExistentTable
- Throws:
Exception
-
testTruncateNotDisabledTable
- Throws:
Exception
-
testSimpleTruncatePreserveSplits
- Throws:
Exception
-
testSimpleTruncateNoPreserveSplits
- Throws:
Exception
-
testSimpleTruncate
private void testSimpleTruncate(org.apache.hadoop.hbase.TableName tableName, boolean preserveSplits) throws Exception - Throws:
Exception
-
testRecoveryAndDoubleExecutionPreserveSplits
- Throws:
Exception
-
testRecoveryAndDoubleExecutionNoPreserveSplits
- Throws:
Exception
-
testRecoveryAndDoubleExecution
private void testRecoveryAndDoubleExecution(org.apache.hadoop.hbase.TableName tableName, boolean preserveSplits) throws Exception - Throws:
Exception
-
testOnHDFSFailurePreserveSplits
- Throws:
Exception
-
testOnHDFSFailureNoPreserveSplits
- Throws:
Exception
-
testOnHDFSFailure
private void testOnHDFSFailure(org.apache.hadoop.hbase.TableName tableName, boolean preserveSplits) throws Exception - Throws:
Exception
-
testTruncateWithPreserveAfterSplit
- Throws:
Exception
-
testTruncatePreserveWithReplicaRegionAfterSplit
- Throws:
Exception
-
splitAndTruncate
private void splitAndTruncate(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.client.RegionInfo[] regions, int regionReplication) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-