Class TestNamespaceReplication
java.lang.Object
org.apache.hadoop.hbase.replication.TestReplicationBase
org.apache.hadoop.hbase.replication.TestNamespaceReplication
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.replication.TestReplicationBase
TestReplicationBase.ReplicationEndpointTest
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Admin
private static org.apache.hadoop.hbase.client.Admin
static final HBaseClassTestRule
private static org.apache.hadoop.hbase.client.Connection
private static org.apache.hadoop.hbase.client.Connection
private static final byte[]
private static final byte[]
private static final org.slf4j.Logger
private static String
private static String
boolean
private static final org.apache.hadoop.hbase.TableName
private static final org.apache.hadoop.hbase.TableName
private static final byte[]
Fields inherited from class org.apache.hadoop.hbase.replication.TestReplicationBase
CONF_WITH_LOCALFS, CONF1, CONF2, famName, hbaseAdmin, htable1, htable2, NB_RETRIES, NB_ROWS_IN_BATCH, NB_ROWS_IN_BIG_BATCH, noRepfamName, NUM_SLAVES1, NUM_SLAVES2, PEER_ID2, replicateCount, replicatedEntries, row, SLEEP_TIME, tableName, UTIL1, UTIL2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
delete
(org.apache.hadoop.hbase.client.Table source, byte[] row, byte[]... families) private void
ensureRowExisted
(org.apache.hadoop.hbase.client.Table target, byte[] row, byte[]... families) private void
ensureRowNotExisted
(org.apache.hadoop.hbase.client.Table target, byte[] row, byte[]... families) protected boolean
private void
put
(org.apache.hadoop.hbase.client.Table source, byte[] row, byte[]... families) static void
static void
void
Methods inherited from class org.apache.hadoop.hbase.replication.TestReplicationBase
addPeer, cleanUp, configureClusters, createTable, getClusterKey, isSyncPeer, loadData, loadData, removePeer, restartSourceCluster, restartTargetHBaseCluster, runSimplePutDeleteTest, runSmallBatchTest, setUpBase, setupConfig, stopAllRegionServers, tearDownBase, waitForReplication, waitForReplication
-
Field Details
-
CLASS_RULE
-
LOG
-
ns1
-
ns2
-
tabAName
-
tabBName
-
f1Name
-
f2Name
-
val
-
connection1
-
connection2
-
admin1
-
admin2
-
serialPeer
-
-
Constructor Details
-
TestNamespaceReplication
public TestNamespaceReplication()
-
-
Method Details
-
isSerialPeer
- Overrides:
isSerialPeer
in classTestReplicationBase
-
parameters
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
testNamespaceReplication
- Throws:
Exception
-
put
private void put(org.apache.hadoop.hbase.client.Table source, byte[] row, byte[]... families) throws Exception - Throws:
Exception
-
delete
private void delete(org.apache.hadoop.hbase.client.Table source, byte[] row, byte[]... families) throws Exception - Throws:
Exception
-
ensureRowExisted
private void ensureRowExisted(org.apache.hadoop.hbase.client.Table target, byte[] row, byte[]... families) throws Exception - Throws:
Exception
-
ensureRowNotExisted
private void ensureRowNotExisted(org.apache.hadoop.hbase.client.Table target, byte[] row, byte[]... families) throws Exception - Throws:
Exception
-