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 SummaryFieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final byte[]private static org.apache.hadoop.hbase.client.RegionInfoprivate static org.apache.hadoop.hbase.client.RegionInfoprivate static final HBaseTestingUtilprivate static final org.slf4j.Loggerprivate static final intprivate static final byte[]private static org.apache.hadoop.hbase.client.Table
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidprivate voidassertGet(org.apache.hadoop.hbase.regionserver.Region region, int value, boolean expect) private voidassertGetRpc(org.apache.hadoop.hbase.client.RegionInfo info, int value, boolean expect) static voidbefore()private org.apache.hadoop.hbase.regionserver.HRegionServergetRS()private voidvoidvoidvoidvoidvoidvoidTests 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- 
TestRegionReplicaspublic TestRegionReplicas()
 
- 
- 
Method Details- 
before- Throws:
- Exception
 
- 
afterClass- Throws:
- Exception
 
- 
getRS
- 
testOpenRegionReplica- Throws:
- Exception
 
- 
testRegionReplicaUpdatesMetaLocationTests that the meta location is saved for secondary regions- Throws:
- Exception
 
- 
testRegionReplicaGets- Throws:
- Exception
 
- 
testGetOnTargetRegionReplica- Throws:
- Exception
 
- 
assertGetprivate void assertGet(org.apache.hadoop.hbase.regionserver.Region region, int value, boolean expect) throws IOException - Throws:
- IOException
 
- 
assertGetRpcprivate 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
 
 
-