public class TestReplicationStatus extends TestReplicationBase
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
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 |
---|
TestReplicationStatus() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
insertRowsOnSource() |
void |
testReplicationStatus()
Test for HBASE-9531.
|
private List<org.apache.hadoop.hbase.replication.ReplicationLoadSource> |
waitOnMetricsReport(int greaterThan,
org.apache.hadoop.hbase.ServerName serverName)
Wait until Master shows metrics counts for ReplicationLoadSourceList that are
greater than
greaterThan for serverName before
returning. |
cleanUp, configureClusters, isSerialPeer, loadData, loadData, restartSourceCluster, restartTargetHBaseCluster, runSimplePutDeleteTest, runSmallBatchTest, setUpBase, setUpBeforeClass, setupConfig, tearDownAfterClass, tearDownBase, waitForReplication, waitForReplication
private static final org.slf4j.Logger LOG
public static final HBaseClassTestRule CLASS_RULE
public TestReplicationStatus()
static void insertRowsOnSource() throws IOException
IOException
public void testReplicationStatus() throws Exception
Exception
private List<org.apache.hadoop.hbase.replication.ReplicationLoadSource> waitOnMetricsReport(int greaterThan, org.apache.hadoop.hbase.ServerName serverName) throws IOException
greaterThan
for serverName
before
returning. We want to avoid case where RS hasn't yet updated Master before
allowing test proceed.greaterThan
- size of replicationLoadSourceList must be greater before we proceedIOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.