public class TestTruncateTableProcedure extends TestTableDDLProcedureBase
| Modifier and Type | Class and Description |
|---|---|
static class |
TestTruncateTableProcedure.TruncateTableProcedureOnHDFSFailure |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
UTIL| Constructor and Description |
|---|
TestTruncateTableProcedure() |
| Modifier and Type | Method and Description |
|---|---|
private 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 |
testOnHDFSFailureNoPreserveSplits() |
void |
testOnHDFSFailurePreserveSplits() |
private void |
testRecoveryAndDoubleExecution(org.apache.hadoop.hbase.TableName tableName,
boolean preserveSplits) |
void |
testRecoveryAndDoubleExecutionNoPreserveSplits() |
void |
testRecoveryAndDoubleExecutionPreserveSplits() |
private void |
testSimpleTruncate(org.apache.hadoop.hbase.TableName tableName,
boolean preserveSplits) |
void |
testSimpleTruncateNoPreserveSplits() |
void |
testSimpleTruncatePreserveSplits() |
void |
testTruncateNotDisabledTable() |
void |
testTruncateNotExistentTable() |
void |
testTruncatePreserveWithReplicaRegionAfterSplit() |
void |
testTruncateWithPreserveAfterSplit() |
cleanupTest, getMaster, getMasterProcedureExecutor, resetProcExecutorTestingKillFlag, setup, setupCluster, tearDownpublic static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public org.junit.rules.TestName name
public TestTruncateTableProcedure()
public void testTruncateNotExistentTable() throws Exception
Exceptionpublic void testTruncateNotDisabledTable() throws Exception
Exceptionpublic void testSimpleTruncatePreserveSplits() throws Exception
Exceptionpublic void testSimpleTruncateNoPreserveSplits() throws Exception
Exceptionprivate void testSimpleTruncate(org.apache.hadoop.hbase.TableName tableName, boolean preserveSplits) throws Exception
Exceptionpublic void testRecoveryAndDoubleExecutionPreserveSplits() throws Exception
Exceptionpublic void testRecoveryAndDoubleExecutionNoPreserveSplits() throws Exception
Exceptionprivate void testRecoveryAndDoubleExecution(org.apache.hadoop.hbase.TableName tableName, boolean preserveSplits) throws Exception
Exceptionpublic void testOnHDFSFailurePreserveSplits() throws Exception
Exceptionpublic void testOnHDFSFailureNoPreserveSplits() throws Exception
Exceptionprivate void testOnHDFSFailure(org.apache.hadoop.hbase.TableName tableName, boolean preserveSplits) throws Exception
Exceptionpublic void testTruncateWithPreserveAfterSplit() throws Exception
Exceptionpublic void testTruncatePreserveWithReplicaRegionAfterSplit() throws Exception
Exceptionprivate void splitAndTruncate(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.client.RegionInfo[] regions, int regionReplication) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.