Class TestTruncateTableProcedure
java.lang.Object
org.apache.hadoop.hbase.master.procedure.TestTableDDLProcedureBase
org.apache.hadoop.hbase.master.procedure.TestTruncateTableProcedure
@Tag("org.apache.hadoop.hbase.testclassification.MasterTests") @Tag("org.apache.hadoop.hbase.testclassification.LargeTests")
public class TestTruncateTableProcedure
extends TestTableDDLProcedureBase
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.master.procedure.TestTableDDLProcedureBase
UTIL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoidsetTestMethod(org.junit.jupiter.api.TestInfo testInfo) static voidprivate 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
getMaster, getMasterProcedureExecutor, resetProcExecutorTestingKillFlag, setup, setupConf, tearDown
-
Field Details
-
LOG
-
testMethodName
-
-
Constructor Details
-
TestTruncateTableProcedure
public TestTruncateTableProcedure()
-
-
Method Details
-
setupCluster
- Throws:
Exception
-
cleanupTest
- Throws:
Exception
-
setTestMethod
-
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
-