Class TestRegionReplicaReplicationEndpoint
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.TestRegionReplicaReplicationEndpoint
Tests RegionReplicaReplicationEndpoint class 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 HBaseTestingUtilityprivate 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) voidtestRegionReplicaReplication(int regionReplication) voidvoidtestRegionReplicaReplicationIgnores(boolean dropTable, boolean disableReplication) voidvoidvoidvoidvoidvoidvoidvoidvoidprivate 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
-
TestRegionReplicaReplicationEndpoint
public TestRegionReplicaReplicationEndpoint()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
testRegionReplicaReplicationPeerIsCreated
public void testRegionReplicaReplicationPeerIsCreated() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException- Throws:
IOExceptionorg.apache.hadoop.hbase.replication.ReplicationException
-
testRegionReplicaReplicationPeerIsCreatedForModifyTable
- 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
-
testRegionReplicaReplicationIgnoresDisabledTables
- Throws:
Exception
-
testRegionReplicaReplicationIgnoresDroppedTables
- Throws:
Exception
-
testRegionReplicaReplicationIgnoresNonReplicatedTables
- Throws:
Exception
-
testRegionReplicaReplicationIgnores
public void testRegionReplicaReplicationIgnores(boolean dropTable, boolean disableReplication) throws Exception - Throws:
Exception
-
createOrEnableTableWithRetries
private void createOrEnableTableWithRetries(org.apache.hadoop.hbase.client.TableDescriptor htd, boolean createTableOperation)
-