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, waitForReplication
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
static int numRegionServers
public TestReplicationEndpoint()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testCustomReplicationEndpoint() throws Exception
Exception
public void testReplicationEndpointReturnsFalseOnReplicate() throws Exception
Exception
public void testInterClusterReplication() throws Exception
Exception
public void testWALEntryFilterFromReplicationEndpoint() throws Exception
Exception
public void testWALEntryFilterAddValidation() throws Exception
Exception
public void testWALEntryFilterUpdateValidation() throws Exception
Exception
public 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
IOException
private void doPut(org.apache.hadoop.hbase.client.Connection connection, byte[] row) throws IOException
IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.