public class TestAsyncReplicationAdminApiWithClusters extends TestAsyncAdminBase
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.client.AsyncAdmin |
admin2 |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf2 |
private static org.apache.hadoop.hbase.client.AsyncConnection |
connection |
private static String |
ID_SECOND |
private static HBaseTestingUtility |
TEST_UTIL2 |
Constructor and Description |
---|
TestAsyncReplicationAdminApiWithClusters() |
Modifier and Type | Method and Description |
---|---|
private void |
cleanupTables(org.apache.hadoop.hbase.client.AsyncAdmin admin,
Pattern pattern) |
static void |
clearUp() |
private void |
createTableWithDefaultConf(org.apache.hadoop.hbase.client.AsyncAdmin admin,
org.apache.hadoop.hbase.TableName tableName) |
static void |
setUpBeforeClass() |
void |
tearDown() |
void |
testDisableReplicationForNonExistingTable() |
void |
testDisableReplicationWhenTableNameAsNull() |
void |
testEnableAndDisableTableReplication() |
void |
testEnableReplicationForExplicitSetTableCfs() |
void |
testEnableReplicationForNonExistingTable() |
void |
testEnableReplicationWhenSlaveClusterDoesntHaveTable() |
void |
testEnableReplicationWhenTableDescriptorIsNotSameInClusters() |
void |
testEnableReplicationWhenTableNameAsNull() |
createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, params, setUp, tearDownAfterClass
addResourceToRegionServerConfiguration, replaceHBaseSiteXML, restoreHBaseSiteXML, setUpConfigurationFiles
public static final HBaseClassTestRule CLASS_RULE
private static final String ID_SECOND
private static HBaseTestingUtility TEST_UTIL2
private static org.apache.hadoop.conf.Configuration conf2
private static org.apache.hadoop.hbase.client.AsyncAdmin admin2
private static org.apache.hadoop.hbase.client.AsyncConnection connection
public TestAsyncReplicationAdminApiWithClusters()
public static void setUpBeforeClass() throws Exception
Exception
public static void clearUp() throws IOException
IOException
public void tearDown() throws Exception
tearDown
in class TestAsyncAdminBase
Exception
private void cleanupTables(org.apache.hadoop.hbase.client.AsyncAdmin admin, Pattern pattern)
private void createTableWithDefaultConf(org.apache.hadoop.hbase.client.AsyncAdmin admin, org.apache.hadoop.hbase.TableName tableName)
public void testEnableAndDisableTableReplication() throws Exception
Exception
public void testEnableReplicationWhenSlaveClusterDoesntHaveTable() throws Exception
Exception
public void testEnableReplicationWhenTableDescriptorIsNotSameInClusters() throws Exception
Exception
public void testDisableReplicationForNonExistingTable() throws Exception
Exception
public void testEnableReplicationForNonExistingTable() throws Exception
Exception
public void testDisableReplicationWhenTableNameAsNull() throws Exception
Exception
public void testEnableReplicationWhenTableNameAsNull() throws Exception
Exception
public void testEnableReplicationForExplicitSetTableCfs() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.