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, tearDown
public 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
Exception
public void testTruncateNotDisabledTable() throws Exception
Exception
public void testSimpleTruncatePreserveSplits() throws Exception
Exception
public void testSimpleTruncateNoPreserveSplits() throws Exception
Exception
private void testSimpleTruncate(org.apache.hadoop.hbase.TableName tableName, boolean preserveSplits) throws Exception
Exception
public void testRecoveryAndDoubleExecutionPreserveSplits() throws Exception
Exception
public void testRecoveryAndDoubleExecutionNoPreserveSplits() throws Exception
Exception
private void testRecoveryAndDoubleExecution(org.apache.hadoop.hbase.TableName tableName, boolean preserveSplits) throws Exception
Exception
public void testOnHDFSFailurePreserveSplits() throws Exception
Exception
public void testOnHDFSFailureNoPreserveSplits() throws Exception
Exception
private void testOnHDFSFailure(org.apache.hadoop.hbase.TableName tableName, boolean preserveSplits) throws Exception
Exception
public void testTruncateWithPreserveAfterSplit() throws Exception
Exception
public void testTruncatePreserveWithReplicaRegionAfterSplit() throws Exception
Exception
private void splitAndTruncate(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.client.RegionInfo[] regions, int regionReplication) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.