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
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final HBaseTestingUtility
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) void
testRegionReplicaReplication
(int regionReplication) void
void
testRegionReplicaReplicationIgnores
(boolean dropTable, boolean disableReplication) void
void
void
void
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
-
TestRegionReplicaReplicationEndpoint
public TestRegionReplicaReplicationEndpoint()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
testRegionReplicaReplicationPeerIsCreated
public void testRegionReplicaReplicationPeerIsCreated() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException- Throws:
IOException
org.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)
-