Class TestReplicationEndpoint
java.lang.Object
org.apache.hadoop.hbase.replication.TestReplicationBase
org.apache.hadoop.hbase.replication.TestReplicationEndpoint
- Direct Known Subclasses:
TestReplicationEndpointWithMultipleAsyncWAL
,TestReplicationEndpointWithMultipleWAL
Tests ReplicationSource and ReplicationEndpoint interactions
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
Not used by unit tests, helpful for manual testing with replication.Nested classes/interfaces inherited from class org.apache.hadoop.hbase.replication.TestReplicationBase
TestReplicationBase.ReplicationEndpointTest
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
(package private) static int
Fields inherited from class org.apache.hadoop.hbase.replication.TestReplicationBase
CONF_WITH_LOCALFS, CONF1, CONF2, connection1, connection2, 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 org.apache.hadoop.hbase.wal.WAL.Entry
createEntry
(String tableName, TreeMap<byte[], Integer> scopes, byte[]... kvs) createWALEntriesWithSize
(String tableName) private static void
doAssert
(byte[] row) private void
doPut
(byte[] row) private void
doPut
(org.apache.hadoop.hbase.client.Connection connection, byte[] row) void
setup()
static void
static void
void
void
void
void
void
void
void
Methods inherited from class org.apache.hadoop.hbase.replication.TestReplicationBase
addPeer, cleanUp, configureClusters, createTable, getClusterKey, isSerialPeer, isSyncPeer, loadData, loadData, removePeer, restartSourceCluster, restartTargetHBaseCluster, runSimplePutDeleteTest, runSmallBatchTest, setUpBase, setupConfig, stopAllRegionServers, tearDownBase, waitForReplication, waitForReplication
-
Field Details
-
CLASS_RULE
-
LOG
-
numRegionServers
-
-
Constructor Details
-
TestReplicationEndpoint
public TestReplicationEndpoint()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
setup
- Throws:
Exception
-
testCustomReplicationEndpoint
- Throws:
Exception
-
testReplicationEndpointReturnsFalseOnReplicate
- Throws:
Exception
-
testInterClusterReplication
- Throws:
Exception
-
testWALEntryFilterFromReplicationEndpoint
- Throws:
Exception
-
testWALEntryFilterAddValidation
- Throws:
Exception
-
testWALEntryFilterUpdateValidation
- Throws:
Exception
-
testMetricsSourceBaseSourcePassThrough
-
createWALEntriesWithSize
private List<org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.wal.WAL.Entry,Long>> createWALEntriesWithSize(String tableName) -
createEntry
private org.apache.hadoop.hbase.wal.WAL.Entry createEntry(String tableName, TreeMap<byte[], Integer> scopes, byte[]... kvs) -
doPut
- Throws:
IOException
-
doPut
private void doPut(org.apache.hadoop.hbase.client.Connection connection, byte[] row) throws IOException - Throws:
IOException
-
doAssert
- Throws:
Exception
-