Class TestRegionReplicaReplication
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.TestRegionReplicaReplication
Tests region replication by setting up region replicas and verifying async wal replication
replays the edits to the secondary region in various scenarios.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final HBaseTestingUtil
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
private void
createOrEnableTableWithRetries
(org.apache.hadoop.hbase.client.TableDescriptor htd, boolean createTableOperation) private void
testRegionReplicaReplication
(int regionReplication, boolean skipWAL) void
void
void
void
void
private void
verifyReplication
(org.apache.hadoop.hbase.TableName tableName, int regionReplication, int startRow, int endRow) private void
verifyReplication
(org.apache.hadoop.hbase.TableName tableName, int regionReplication, int startRow, int endRow, boolean present)
-
Field Details
-
CLASS_RULE
-
LOG
-
NB_SERVERS
- See Also:
-
HTU
-
name
-
-
Constructor Details
-
TestRegionReplicaReplication
public TestRegionReplicaReplication()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
testRegionReplicaReplication
- Throws:
Exception
-
verifyReplication
private void verifyReplication(org.apache.hadoop.hbase.TableName tableName, int regionReplication, int startRow, int endRow) throws Exception - Throws:
Exception
-
verifyReplication
private void verifyReplication(org.apache.hadoop.hbase.TableName tableName, int regionReplication, int startRow, int endRow, boolean present) throws Exception - Throws:
Exception
-
testRegionReplicaReplicationWith2Replicas
- Throws:
Exception
-
testRegionReplicaReplicationWith3Replicas
- Throws:
Exception
-
testRegionReplicaReplicationWith10Replicas
- Throws:
Exception
-
testRegionReplicaWithoutMemstoreReplication
- Throws:
Exception
-
testRegionReplicaReplicationForFlushAndCompaction
- Throws:
Exception
-
createOrEnableTableWithRetries
private void createOrEnableTableWithRetries(org.apache.hadoop.hbase.client.TableDescriptor htd, boolean createTableOperation)
-