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
Modifier and TypeClassDescriptionstatic final class
static final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static byte[]
static final HBaseClassTestRule
private static byte[]
private static final HBaseTestingUtil
private static String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
checkReplica
(org.apache.hadoop.hbase.client.Table table, int replicaId) private void
doTest
(boolean skipWAL) static void
setUp()
static void
tearDown()
void
void
-
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
-