Class TestTruncateTableProcedure
java.lang.Object
org.apache.hadoop.hbase.master.procedure.TestTableDDLProcedureBase
org.apache.hadoop.hbase.master.procedure.TestTruncateTableProcedure
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
org.junit.rules.TestName
Fields inherited from class org.apache.hadoop.hbase.master.procedure.TestTableDDLProcedureBase
UTIL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
splitAndTruncate
(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.client.RegionInfo[] regions, int regionReplication) private void
testOnHDFSFailure
(org.apache.hadoop.hbase.TableName tableName, boolean preserveSplits) void
void
private void
testRecoveryAndDoubleExecution
(org.apache.hadoop.hbase.TableName tableName, boolean preserveSplits) void
void
private void
testSimpleTruncate
(org.apache.hadoop.hbase.TableName tableName, boolean preserveSplits) void
void
void
void
void
void
Methods 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:
IOException
InterruptedException
-