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
Modifier and TypeClassDescriptionstatic class
This copro is used to synchronize the tests. -
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 org.apache.hadoop.hbase.client.Table
private static org.apache.hadoop.hbase.TableName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
after()
static void
void
before()
static void
private void
checkRegionIsClosed
(String encodedRegionName) private void
checkRegionIsOpened
(org.apache.hadoop.hbase.client.RegionInfo hri) private void
closeRegion
(org.apache.hadoop.hbase.client.RegionInfo hri) private void
flushRegion
(org.apache.hadoop.hbase.client.RegionInfo regionInfo) private org.apache.hadoop.hbase.regionserver.HRegionServer
getRS()
private boolean
isRegionOpened
(org.apache.hadoop.hbase.client.RegionInfo hri) private void
openRegion
(org.apache.hadoop.hbase.client.RegionInfo hri) void
void
void
void
void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
LOG
-
TABLE_NAME
-
table
-
row
-
hriPrimary
-
hriSecondary
-
HTU
-
f
-
REFRESH_PERIOD
- See Also:
-
-
Constructor Details
-
TestReplicasClient
public TestReplicasClient()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
before
- Throws:
IOException
-
after
- Throws:
IOException
org.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
-