public class TestTruncateRegionProcedure extends TestTableDDLProcedureBase
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 |
---|
TestTruncateRegionProcedure() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanupTest() |
private List<org.apache.hadoop.hbase.client.ColumnFamilyDescriptor> |
columnFamilyDescriptor(String[] families) |
private void |
createTable(org.apache.hadoop.hbase.TableName tableName,
String[] families,
int replicaCount) |
void |
setup() |
static void |
setupCluster() |
private static void |
setupConf(org.apache.hadoop.conf.Configuration conf) |
private org.apache.hadoop.hbase.client.TableDescriptor |
tableDescriptor(org.apache.hadoop.hbase.TableName tableName,
String[] families,
int replicaCount) |
void |
tearDown() |
void |
testTruncateRegionProcedure() |
void |
testTruncateRegionProcedureErrorWhenSpecifiedReplicaRegionID() |
getMaster, getMasterProcedureExecutor, resetProcExecutorTestingKillFlag
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public org.junit.rules.TestName name
public TestTruncateRegionProcedure()
private static void setupConf(org.apache.hadoop.conf.Configuration conf)
public static void setupCluster() throws Exception
Exception
public static void cleanupTest() throws Exception
Exception
public void setup() throws Exception
setup
in class TestTableDDLProcedureBase
Exception
public void tearDown() throws Exception
tearDown
in class TestTableDDLProcedureBase
Exception
public void testTruncateRegionProcedure() throws Exception
Exception
public void testTruncateRegionProcedureErrorWhenSpecifiedReplicaRegionID() throws Exception
Exception
private org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor(org.apache.hadoop.hbase.TableName tableName, String[] families, int replicaCount)
private List<org.apache.hadoop.hbase.client.ColumnFamilyDescriptor> columnFamilyDescriptor(String[] families)
private void createTable(org.apache.hadoop.hbase.TableName tableName, String[] families, int replicaCount) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.