Class TestTruncateRegionProcedure
java.lang.Object
org.apache.hadoop.hbase.master.procedure.TestTableDDLProcedureBase
org.apache.hadoop.hbase.master.procedure.TestTruncateRegionProcedure
-
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 TypeMethodDescriptionstatic void
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
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
void
Methods inherited from class org.apache.hadoop.hbase.master.procedure.TestTableDDLProcedureBase
getMaster, getMasterProcedureExecutor, resetProcExecutorTestingKillFlag
-
Field Details
-
CLASS_RULE
-
LOG
-
name
-
-
Constructor Details
-
TestTruncateRegionProcedure
public TestTruncateRegionProcedure()
-
-
Method Details
-
setupConf
-
setupCluster
- Throws:
Exception
-
cleanupTest
- Throws:
Exception
-
setup
- Overrides:
setup
in classTestTableDDLProcedureBase
- Throws:
Exception
-
tearDown
- Overrides:
tearDown
in classTestTableDDLProcedureBase
- Throws:
Exception
-
testTruncateRegionProcedure
- Throws:
Exception
-
testTruncateRegionProcedureErrorWhenSpecifiedReplicaRegionID
- Throws:
Exception
-
tableDescriptor
private org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor(org.apache.hadoop.hbase.TableName tableName, String[] families, int replicaCount) -
columnFamilyDescriptor
private List<org.apache.hadoop.hbase.client.ColumnFamilyDescriptor> columnFamilyDescriptor(String[] families) -
createTable
private void createTable(org.apache.hadoop.hbase.TableName tableName, String[] families, int replicaCount) throws IOException - Throws:
IOException
-