Class TestRegionReplicas
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionReplicas
Tests for region replicas. Sad that we cannot isolate these without bringing up a whole cluster.
See
TestRegionServerNoMaster
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
private static org.apache.hadoop.hbase.client.RegionInfo
private static org.apache.hadoop.hbase.client.RegionInfo
private static final HBaseTestingUtil
private static final org.slf4j.Logger
private static final int
private static final byte[]
private static org.apache.hadoop.hbase.client.Table
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
private void
assertGet
(org.apache.hadoop.hbase.regionserver.Region region, int value, boolean expect) private void
assertGetRpc
(org.apache.hadoop.hbase.client.RegionInfo info, int value, boolean expect) static void
before()
private org.apache.hadoop.hbase.regionserver.HRegionServer
getRS()
private void
void
void
void
void
void
void
Tests that the meta location is saved for secondary regionsvoid
-
Field Details
-
CLASS_RULE
-
LOG
-
NB_SERVERS
- See Also:
-
table
-
row
-
hriPrimary
-
hriSecondary
-
HTU
-
f
-
-
Constructor Details
-
TestRegionReplicas
public TestRegionReplicas()
-
-
Method Details
-
before
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
getRS
-
testOpenRegionReplica
- Throws:
Exception
-
testRegionReplicaUpdatesMetaLocation
Tests that the meta location is saved for secondary regions- Throws:
Exception
-
testRegionReplicaGets
- Throws:
Exception
-
testGetOnTargetRegionReplica
- Throws:
Exception
-
assertGet
private void assertGet(org.apache.hadoop.hbase.regionserver.Region region, int value, boolean expect) throws IOException - Throws:
IOException
-
assertGetRpc
private void assertGetRpc(org.apache.hadoop.hbase.client.RegionInfo info, int value, boolean expect) throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException - Throws:
IOException
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
-
restartRegionServer
- Throws:
Exception
-
testRefresStoreFiles
- Throws:
Exception
-
testFlushAndCompactionsInPrimary
- Throws:
Exception
-
testVerifySecondaryAbilityToReadWithOnFiles
- Throws:
Exception
-