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
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testTableSplitSwitch() throws Exception
Exception
public void testTableSplitSwitchForPreSplittedTable() throws Exception
Exception
public void testTableMergeSwitch() throws Exception
Exception
public void testTableMergeSwitchForPreSplittedTable() throws Exception
Exception
private void trySplitAndEnsureItFails(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exception
private void enableTableSplit(org.apache.hadoop.hbase.TableName tableName) throws Exception
tableName
- name of the tableException
private void trySplitAndEnsureItIsSuccess(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exception
private void tryMergeAndEnsureItFails(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exception
private void enableTableMerge(org.apache.hadoop.hbase.TableName tableName) throws Exception
tableName
- name of the tableException
private void tryMergeAndEnsureItIsSuccess(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.