public class TestReplicationEndpoint extends TestReplicationBase
| Modifier and Type | Class and Description |
|---|---|
static class |
TestReplicationEndpoint.EverythingPassesWALEntryFilter |
static class |
TestReplicationEndpoint.EverythingPassesWALEntryFilterSubclass |
static class |
TestReplicationEndpoint.InterClusterReplicationEndpointForTest |
static class |
TestReplicationEndpoint.ReplicationEndpointForTest |
static class |
TestReplicationEndpoint.ReplicationEndpointReturningFalse |
static class |
TestReplicationEndpoint.ReplicationEndpointWithWALEntryFilter |
static class |
TestReplicationEndpoint.SleepingReplicationEndpointForTest
Not used by unit tests, helpful for manual testing with replication.
|
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
(package private) static int |
numRegionServers |
admin, 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, row, SLEEP_TIME, tableName, UTIL1, UTIL2| Constructor and Description |
|---|
TestReplicationEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
private org.apache.hadoop.hbase.wal.WAL.Entry |
createEntry(String tableName,
TreeMap<byte[],Integer> scopes,
byte[]... kvs) |
private List<org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.wal.WAL.Entry,Long>> |
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 |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testCustomReplicationEndpoint() |
void |
testInterClusterReplication() |
void |
testMetricsSourceBaseSourcePassThrough() |
void |
testReplicationEndpointReturnsFalseOnReplicate() |
void |
testWALEntryFilterAddValidation() |
void |
testWALEntryFilterFromReplicationEndpoint() |
void |
testWALEntryFilterUpdateValidation() |
cleanUp, configureClusters, isSerialPeer, loadData, loadData, restartSourceCluster, restartTargetHBaseCluster, runSimplePutDeleteTest, runSmallBatchTest, setUpBase, setupConfig, tearDownBase, waitForReplication, waitForReplicationpublic static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
static int numRegionServers
public TestReplicationEndpoint()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testCustomReplicationEndpoint() throws Exception
Exceptionpublic void testReplicationEndpointReturnsFalseOnReplicate() throws Exception
Exceptionpublic void testInterClusterReplication() throws Exception
Exceptionpublic void testWALEntryFilterFromReplicationEndpoint() throws Exception
Exceptionpublic void testWALEntryFilterAddValidation() throws Exception
Exceptionpublic void testWALEntryFilterUpdateValidation() throws Exception
Exceptionpublic void testMetricsSourceBaseSourcePassThrough()
private List<org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.wal.WAL.Entry,Long>> createWALEntriesWithSize(String tableName)
private org.apache.hadoop.hbase.wal.WAL.Entry createEntry(String tableName, TreeMap<byte[],Integer> scopes, byte[]... kvs)
private void doPut(byte[] row) throws IOException
IOExceptionprivate void doPut(org.apache.hadoop.hbase.client.Connection connection, byte[] row) throws IOException
IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.