Class TestRegionReplicaReplication
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.TestRegionReplicaReplication
@Tag("org.apache.hadoop.hbase.testclassification.FlakeyTests") @Tag("org.apache.hadoop.hbase.testclassification.LargeTests")
public class TestRegionReplicaReplication
extends Object
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
FieldsModifier and TypeFieldDescriptionprivate static final HBaseTestingUtilprivate static final org.slf4j.Loggerprivate static final intprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidprivate voidcreateOrEnableTableWithRetries(org.apache.hadoop.hbase.client.TableDescriptor htd, boolean createTableOperation) private voidtestRegionReplicaReplication(int regionReplication, boolean skipWAL) voidtestRegionReplicaReplicationForFlushAndCompaction(org.junit.jupiter.api.TestInfo testInfo) voidvoidvoidvoidtestRegionReplicaWithoutMemstoreReplication(org.junit.jupiter.api.TestInfo testInfo) private voidverifyReplication(org.apache.hadoop.hbase.TableName tableName, int regionReplication, int startRow, int endRow) private voidverifyReplication(org.apache.hadoop.hbase.TableName tableName, int regionReplication, int startRow, int endRow, boolean present)
-
Field Details
-
LOG
-
NB_SERVERS
- See Also:
-
HTU
-
testName
-
-
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
@Test public void testRegionReplicaWithoutMemstoreReplication(org.junit.jupiter.api.TestInfo testInfo) throws Exception - Throws:
Exception
-
testRegionReplicaReplicationForFlushAndCompaction
@Test public void testRegionReplicaReplicationForFlushAndCompaction(org.junit.jupiter.api.TestInfo testInfo) throws Exception - Throws:
Exception
-
createOrEnableTableWithRetries
private void createOrEnableTableWithRetries(org.apache.hadoop.hbase.client.TableDescriptor htd, boolean createTableOperation)
-