Package org.apache.hadoop.hbase.client
Class TestAsyncReplicationAdminApiWithClusters
java.lang.Object
org.apache.hadoop.hbase.client.AbstractTestUpdateConfiguration
org.apache.hadoop.hbase.client.TestAsyncAdminBase
org.apache.hadoop.hbase.client.TestAsyncReplicationAdminApiWithClusters
@Tag("org.apache.hadoop.hbase.testclassification.LargeTests") @Tag("org.apache.hadoop.hbase.testclassification.ClientTests")
public class TestAsyncReplicationAdminApiWithClusters
extends TestAsyncAdminBase
Class to test asynchronous replication admin operations when more than 1 cluster
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.AsyncAdminprivate static org.apache.hadoop.conf.Configurationprivate static org.apache.hadoop.hbase.client.AsyncConnectionprivate static final Stringprivate static HBaseTestingUtilFields inherited from class org.apache.hadoop.hbase.client.TestAsyncAdminBase
admin, ASYNC_CONN, FAMILY, FAMILY_0, FAMILY_1, getAdmin, LOG, tableName, TEST_UTIL -
Constructor Summary
ConstructorsConstructorDescriptionTestAsyncReplicationAdminApiWithClusters(Supplier<org.apache.hadoop.hbase.client.AsyncAdmin> admin) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcleanupTables(org.apache.hadoop.hbase.client.AsyncAdmin admin, Pattern pattern) static voidclearUp()private voidcreateTableWithDefaultConf(org.apache.hadoop.hbase.client.AsyncAdmin admin, org.apache.hadoop.hbase.TableName tableName) static voidvoidtearDown()voidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class org.apache.hadoop.hbase.client.TestAsyncAdminBase
createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, parameters, setUp, tearDownAfterClassMethods inherited from class org.apache.hadoop.hbase.client.AbstractTestUpdateConfiguration
addResourceToRegionServerConfiguration, replaceHBaseSiteXML, restoreHBaseSiteXML, setUpConfigurationFiles
-
Field Details
-
ID_SECOND
- See Also:
-
TEST_UTIL2
-
conf2
-
admin2
-
connection
-
-
Constructor Details
-
TestAsyncReplicationAdminApiWithClusters
public TestAsyncReplicationAdminApiWithClusters(Supplier<org.apache.hadoop.hbase.client.AsyncAdmin> admin)
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
clearUp
- Throws:
Exception
-
tearDown
- Overrides:
tearDownin classTestAsyncAdminBase- Throws:
Exception
-
cleanupTables
-
createTableWithDefaultConf
private void createTableWithDefaultConf(org.apache.hadoop.hbase.client.AsyncAdmin admin, org.apache.hadoop.hbase.TableName tableName) -
testEnableAndDisableTableReplication
- Throws:
Exception
-
testEnableReplicationWhenSlaveClusterDoesntHaveTable
- Throws:
Exception
-
testEnableReplicationWhenTableDescriptorIsNotSameInClusters
@TestTemplate public void testEnableReplicationWhenTableDescriptorIsNotSameInClusters() throws Exception- Throws:
Exception
-
testDisableReplicationForNonExistingTable
- Throws:
Exception
-
testEnableReplicationForNonExistingTable
- Throws:
Exception
-
testDisableReplicationWhenTableNameAsNull
- Throws:
Exception
-
testEnableReplicationWhenTableNameAsNull
- Throws:
Exception
-
testEnableReplicationForExplicitSetTableCfs
- Throws:
Exception
-