public class TestVerifyReplication extends TestReplicationBase
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.client.Table |
htable3 |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static String |
PEER_ID |
private static org.apache.hadoop.hbase.TableName |
peerTableName |
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 |
---|
TestVerifyReplication() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
checkRestoreTmpDir(org.apache.hadoop.conf.Configuration conf,
String restoreTmpDir,
int expectedCount) |
(package private) static void |
runBatchCopyTest() |
(package private) static void |
runVerifyReplication(String[] args,
int expectedGoodRows,
int expectedBadRows) |
void |
setUp() |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testVerifyRepJob()
Do a small loading into a table, make sure the data is really the same, then run the
VerifyReplication job to check the results.
|
void |
testVerifyRepJobWithPeerTableName() |
void |
testVerifyRepJobWithPeerTableNameAndSnapshotSupport() |
void |
testVerifyRepJobWithQuorumAddress() |
void |
testVerifyRepJobWithQuorumAddressAndSnapshotSupport() |
void |
testVerifyRepJobWithRawOptions()
Load a row into a table, make sure the data is really the same, delete the row, make sure the
delete marker is replicated, run verify replication with and without raw to check the results.
|
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
private static final String PEER_ID
private static final org.apache.hadoop.hbase.TableName peerTableName
private static org.apache.hadoop.hbase.client.Table htable3
public org.junit.rules.TestName name
public TestVerifyReplication()
public static void setUpBeforeClass() throws Exception
Exception
static void runVerifyReplication(String[] args, int expectedGoodRows, int expectedBadRows) throws IOException, InterruptedException, ClassNotFoundException
public void testVerifyRepJob() throws Exception
Exception
public void testVerifyRepJobWithRawOptions() throws Exception
Exception
static void checkRestoreTmpDir(org.apache.hadoop.conf.Configuration conf, String restoreTmpDir, int expectedCount) throws IOException
IOException
public void testVerifyRepJobWithQuorumAddress() throws Exception
Exception
public void testVerifyRepJobWithQuorumAddressAndSnapshotSupport() throws Exception
Exception
static void runBatchCopyTest() throws Exception
Exception
public void testVerifyRepJobWithPeerTableName() throws Exception
Exception
public void testVerifyRepJobWithPeerTableNameAndSnapshotSupport() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.