public class TestReplicationSyncUpToolWithBulkLoadedData extends TestReplicationSyncUpToolBase
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
conn1, conn2, FAMILY, ht1Source, ht1TargetAtPeer1, ht2Source, ht2TargetAtPeer1, NO_REP_FAMILY, QUALIFIER, t1SyncupSource, t1SyncupTarget, t2SyncupSource, t2SyncupTarget, TN1, TN2, UTIL1, UTIL2
Constructor and Description |
---|
TestReplicationSyncUpToolWithBulkLoadedData() |
Modifier and Type | Method and Description |
---|---|
protected void |
customizeClusterConf(org.apache.hadoop.conf.Configuration conf) |
private void |
loadAndReplicateHFiles(boolean verifyReplicationOnSlave,
Iterator<String> randomHFileRangeListIterator) |
private void |
loadAndValidateHFileReplication(String testName,
byte[] row,
byte[] fam,
org.apache.hadoop.hbase.client.Table source,
byte[][][] hfileRanges,
int numOfRows) |
private void |
mimicSyncUpAfterBulkLoad(Iterator<String> randomHFileRangeListIterator) |
void |
testSyncUpTool() |
private void |
wait(org.apache.hadoop.hbase.client.Table target,
int expectedCount,
String msg) |
restartSourceHBaseCluster, restartTargetHBaseCluster, setUp, setupReplication, shutDownSourceHBaseCluster, shutDownTargetHBaseCluster, syncUp, tearDown
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public TestReplicationSyncUpToolWithBulkLoadedData()
protected void customizeClusterConf(org.apache.hadoop.conf.Configuration conf)
customizeClusterConf
in class TestReplicationSyncUpToolBase
public void testSyncUpTool() throws Exception
Exception
private void mimicSyncUpAfterBulkLoad(Iterator<String> randomHFileRangeListIterator) throws Exception
Exception
private void loadAndReplicateHFiles(boolean verifyReplicationOnSlave, Iterator<String> randomHFileRangeListIterator) throws Exception
Exception
private void loadAndValidateHFileReplication(String testName, byte[] row, byte[] fam, org.apache.hadoop.hbase.client.Table source, byte[][][] hfileRanges, int numOfRows) throws Exception
Exception
private void wait(org.apache.hadoop.hbase.client.Table target, int expectedCount, String msg) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.