Package org.apache.hadoop.hbase.client
Class TestReplicasClient
java.lang.Object
org.apache.hadoop.hbase.client.TestReplicasClient
Tests for region replicas. Sad that we cannot isolate these without bringing up a whole cluster.
See
TestRegionServerNoMaster.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis copro is used to synchronize the tests. -
Field Summary
FieldsModifier 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.ServerNameprivate org.apache.hadoop.hbase.client.Tableprivate static org.apache.hadoop.hbase.TableName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()static voidprivate voidassertScanMetrics(org.apache.hadoop.hbase.client.Scan scan, org.apache.hadoop.hbase.client.RegionInfo regionInfo, boolean isStale) voidbefore()static voidprivate voidcheckRegionIsClosed(String encodedRegionName) private voidcheckRegionIsOpened(org.apache.hadoop.hbase.client.RegionInfo hri) private voidcloseRegion(org.apache.hadoop.hbase.client.RegionInfo hri) private voidflushRegion(org.apache.hadoop.hbase.client.RegionInfo regionInfo) private org.apache.hadoop.hbase.regionserver.HRegionServergetRS()private booleanisRegionOpened(org.apache.hadoop.hbase.client.RegionInfo hri) private voidopenRegion(org.apache.hadoop.hbase.client.RegionInfo hri) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
LOG
-
TABLE_NAME
-
table
-
row
-
hriPrimary
-
hriSecondary
-
HTU
-
f
-
REFRESH_PERIOD
- See Also:
-
rsServerName
-
-
Constructor Details
-
TestReplicasClient
public TestReplicasClient()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
before
- Throws:
IOException
-
after
- Throws:
IOExceptionorg.apache.zookeeper.KeeperException
-
getRS
-
openRegion
- Throws:
Exception
-
closeRegion
- Throws:
Exception
-
checkRegionIsOpened
- Throws:
Exception
-
isRegionOpened
- Throws:
Exception
-
checkRegionIsClosed
- Throws:
Exception
-
flushRegion
- Throws:
IOException
-
testUseRegionWithoutReplica
- Throws:
Exception
-
testLocations
- Throws:
Exception
-
testGetNoResultNoStaleRegionWithReplica
- Throws:
Exception
-
testGetNoResultStaleRegionWithReplica
- Throws:
Exception
-
testGetNoResultNotStaleSleepRegionWithReplica
- Throws:
Exception
-
testFlushTable
- Throws:
Exception
-
testFlushPrimary
- Throws:
Exception
-
testFlushSecondary
- Throws:
Exception
-
testUseRegionWithReplica
- Throws:
Exception
-
testHedgedRead
- Throws:
Exception
-
testScanMetricsByRegion
- Throws:
Exception
-
assertScanMetrics
private void assertScanMetrics(org.apache.hadoop.hbase.client.Scan scan, org.apache.hadoop.hbase.client.RegionInfo regionInfo, boolean isStale) throws IOException - Throws:
IOException
-