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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classNot 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
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.Logger(package private) static intFields inherited from class org.apache.hadoop.hbase.replication.TestReplicationBase
admin, 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.wal.WAL.EntrycreateEntry(String tableName, TreeMap<byte[], Integer> scopes, byte[]... kvs) createWALEntriesWithSize(String tableName) private static voiddoAssert(byte[] row) private voiddoPut(byte[] row) private voiddoPut(org.apache.hadoop.hbase.client.Connection connection, byte[] row) voidsetup()static voidstatic voidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class org.apache.hadoop.hbase.replication.TestReplicationBase
addPeer, cleanUp, configureClusters, createTable, isSerialPeer, loadData, loadData, removePeer, restartSourceCluster, restartTargetHBaseCluster, runSimplePutDeleteTest, runSmallBatchTest, setUpBase, setupConfig, 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
-