Package org.apache.hadoop.hbase.client
Class TestSplitOrMergeAtTableLevel
java.lang.Object
org.apache.hadoop.hbase.client.TestSplitOrMergeAtTableLevel
@Tag("org.apache.hadoop.hbase.testclassification.MediumTests") @Tag("org.apache.hadoop.hbase.testclassification.ClientTests")
public class TestSplitOrMergeAtTableLevel
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Adminprivate static byte[]private Stringprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidenableTableMerge(org.apache.hadoop.hbase.TableName tableName) Method to enable merge for the passed table and validate this modification.private voidenableTableSplit(org.apache.hadoop.hbase.TableName tableName) Method to enable split for the passed table and validate this modification.voidsetUp(org.junit.jupiter.api.TestInfo testInfo) static voidstatic voidvoidvoidvoidvoidprivate voidtryMergeAndEnsureItFails(org.apache.hadoop.hbase.TableName tableName) private voidtryMergeAndEnsureItIsSuccess(org.apache.hadoop.hbase.TableName tableName) private voidtrySplitAndEnsureItFails(org.apache.hadoop.hbase.TableName tableName) private voidtrySplitAndEnsureItIsSuccess(org.apache.hadoop.hbase.TableName tableName)
-
Field Details
-
TEST_UTIL
-
FAMILY
-
methodName
-
admin
-
-
Constructor Details
-
TestSplitOrMergeAtTableLevel
public TestSplitOrMergeAtTableLevel()
-
-
Method Details
-
setUp
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
testTableSplitSwitch
- Throws:
Exception
-
testTableSplitSwitchForPreSplittedTable
- Throws:
Exception
-
testTableMergeSwitch
- Throws:
Exception
-
testTableMergeSwitchForPreSplittedTable
- Throws:
Exception
-
trySplitAndEnsureItFails
- Throws:
Exception
-
enableTableSplit
Method to enable split for the passed table and validate this modification.- Parameters:
tableName- name of the table- Throws:
Exception
-
trySplitAndEnsureItIsSuccess
private void trySplitAndEnsureItIsSuccess(org.apache.hadoop.hbase.TableName tableName) throws Exception - Throws:
Exception
-
tryMergeAndEnsureItFails
- Throws:
Exception
-
enableTableMerge
Method to enable merge for the passed table and validate this modification.- Parameters:
tableName- name of the table- Throws:
Exception
-
tryMergeAndEnsureItIsSuccess
private void tryMergeAndEnsureItIsSuccess(org.apache.hadoop.hbase.TableName tableName) throws Exception - Throws:
Exception
-