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
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final HBaseTestingUtilprivate static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static final int -
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) voidvoidvoidvoidvoidprivate 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
-
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)
-