public class TestSplitOrMergeAtTableLevel extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
FAMILY |
org.junit.rules.TestName |
name |
private static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestSplitOrMergeAtTableLevel() |
| Modifier and Type | Method and Description |
|---|---|
private void |
enableTableMerge(org.apache.hadoop.hbase.TableName tableName)
Method to enable merge for the passed table and validate this modification.
|
private void |
enableTableSplit(org.apache.hadoop.hbase.TableName tableName)
Method to enable split for the passed table and validate this modification.
|
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testTableMergeSwitch() |
void |
testTableMergeSwitchForPreSplittedTable() |
void |
testTableSplitSwitch() |
void |
testTableSplitSwitchForPreSplittedTable() |
private void |
tryMergeAndEnsureItFails(org.apache.hadoop.hbase.TableName tableName) |
private void |
tryMergeAndEnsureItIsSuccess(org.apache.hadoop.hbase.TableName tableName) |
private void |
trySplitAndEnsureItFails(org.apache.hadoop.hbase.TableName tableName) |
private void |
trySplitAndEnsureItIsSuccess(org.apache.hadoop.hbase.TableName tableName) |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static byte[] FAMILY
public org.junit.rules.TestName name
private static org.apache.hadoop.hbase.client.Admin admin
public TestSplitOrMergeAtTableLevel()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testTableSplitSwitch() throws Exception
Exceptionpublic void testTableSplitSwitchForPreSplittedTable() throws Exception
Exceptionpublic void testTableMergeSwitch() throws Exception
Exceptionpublic void testTableMergeSwitchForPreSplittedTable() throws Exception
Exceptionprivate void trySplitAndEnsureItFails(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exceptionprivate void enableTableSplit(org.apache.hadoop.hbase.TableName tableName) throws Exception
tableName - name of the tableExceptionprivate void trySplitAndEnsureItIsSuccess(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exceptionprivate void tryMergeAndEnsureItFails(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exceptionprivate void enableTableMerge(org.apache.hadoop.hbase.TableName tableName) throws Exception
tableName - name of the tableExceptionprivate void tryMergeAndEnsureItIsSuccess(org.apache.hadoop.hbase.TableName tableName) throws Exception
ExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.