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
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final byte[]private static org.apache.hadoop.hbase.HRegionInfoprivate static org.apache.hadoop.hbase.HRegionInfoprivate static final HBaseTestingUtilityprivate static final org.slf4j.Loggerprivate static final intprivate static final byte[]private static org.apache.hadoop.hbase.client.Table -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprivate voidassertGet(org.apache.hadoop.hbase.regionserver.Region region, int value, boolean expect) private voidassertGetRpc(org.apache.hadoop.hbase.HRegionInfo 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
-
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.HRegionInfo info, int value, boolean expect) throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException - Throws:
IOExceptionorg.apache.hbase.thirdparty.com.google.protobuf.ServiceException
-
restartRegionServer
- Throws:
Exception
-
testRefresStoreFiles
- Throws:
Exception
-
testFlushAndCompactionsInPrimary
- Throws:
Exception
-
testVerifySecondaryAbilityToReadWithOnFiles
- Throws:
Exception
-