Class TestRegionReplicaReplicationError
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionReplicaReplicationError
Test region replication when error occur.
We can not simply move the secondary replicas as we will trigger a flush for the primary replica
when secondary replica is online, which will always make the data of the two regions in sync. So
here we need to simulate request errors.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static byte[]static final HBaseClassTestRuleprivate static byte[]private static final HBaseTestingUtilprivate static String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancheckReplica(org.apache.hadoop.hbase.client.Table table, int replicaId) private voiddoTest(boolean skipWAL) static voidsetUp()static voidtearDown()voidvoid
-
Field Details
-
CLASS_RULE
-
HTU
-
TN
-
CF
-
CQ
-
-
Constructor Details
-
TestRegionReplicaReplicationError
public TestRegionReplicaReplicationError()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
checkReplica
private boolean checkReplica(org.apache.hadoop.hbase.client.Table table, int replicaId) throws IOException - Throws:
IOException
-
testDefaultDurability
- Throws:
IOException
-
testSkipWAL
- Throws:
IOException
-
doTest
- Throws:
IOException
-