Class TestReplicationSyncUpToolWithBulkLoadedData
java.lang.Object
org.apache.hadoop.hbase.replication.TestReplicationSyncUpToolBase
org.apache.hadoop.hbase.replication.TestReplicationSyncUpToolWithBulkLoadedData
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
Fields inherited from class org.apache.hadoop.hbase.replication.TestReplicationSyncUpToolBase
conn1, conn2, FAMILY, ht1Source, ht1TargetAtPeer1, ht2Source, ht2TargetAtPeer1, NO_REP_FAMILY, QUALIFIER, t1SyncupSource, t1SyncupTarget, t2SyncupSource, t2SyncupTarget, TN1, TN2, UTIL1, UTIL2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
loadFromOtherHDFSAndValidateHFileReplication
(String testName, byte[] row, byte[] fam, org.apache.hadoop.hbase.client.Table source, byte[][][] hfileRanges, int numOfRows) private void
mimicSyncUpAfterBulkLoad
(Iterator<String> randomHFileRangeListIterator) void
private void
Methods inherited from class org.apache.hadoop.hbase.replication.TestReplicationSyncUpToolBase
restartSourceHBaseCluster, restartTargetHBaseCluster, setUp, setupReplication, shutDownSourceHBaseCluster, shutDownTargetHBaseCluster, syncUp, syncUp, tearDown
-
Field Details
-
CLASS_RULE
-
LOG
-
-
Constructor Details
-
TestReplicationSyncUpToolWithBulkLoadedData
-
-
Method Details
-
customizeClusterConf
- Overrides:
customizeClusterConf
in classTestReplicationSyncUpToolBase
-
testSyncUpTool
- Throws:
Exception
-
mimicSyncUpAfterBulkLoad
private void mimicSyncUpAfterBulkLoad(Iterator<String> randomHFileRangeListIterator) throws Exception - Throws:
Exception
-
loadAndReplicateHFiles
private void loadAndReplicateHFiles(boolean verifyReplicationOnSlave, Iterator<String> randomHFileRangeListIterator) throws Exception - Throws:
Exception
-
loadAndValidateHFileReplication
private void loadAndValidateHFileReplication(String testName, byte[] row, byte[] fam, org.apache.hadoop.hbase.client.Table source, byte[][][] hfileRanges, int numOfRows) throws Exception - Throws:
Exception
-
loadFromOtherHDFSAndValidateHFileReplication
private void loadFromOtherHDFSAndValidateHFileReplication(String testName, byte[] row, byte[] fam, org.apache.hadoop.hbase.client.Table source, byte[][][] hfileRanges, int numOfRows) throws Exception - Throws:
Exception
-
wait
private void wait(org.apache.hadoop.hbase.client.Table target, int expectedCount, String msg) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-