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 HBaseTestingUtilityprivate static final org.slf4j.Loggerprivate static final intprivate static final byte[]private org.apache.hadoop.hbase.client.Tableprivate static org.apache.hadoop.hbase.TableName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()static voidvoidbefore()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) private voidrunMultipleScansOfOneType(boolean reversed, boolean small) private voidscanWithReplicas(boolean reversed, boolean small, org.apache.hadoop.hbase.client.Consistency consistency, int caching, long maxResultSize, byte[] startRow, int numRows, int numCols, boolean staleExpected, boolean slowNext) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
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:
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
-
testScanWithReplicas
- Throws:
Exception
-
testSmallScanWithReplicas
- Throws:
Exception
-
testReverseScanWithReplicas
- Throws:
Exception
-
testCancelOfScan
- Throws:
Exception
-
testScanOnSpecificReplica
- Throws:
Exception
-
testReverseScanOnSpecificReplica
- Throws:
Exception
-
runMultipleScansOfOneType
- Throws:
Exception
-
scanWithReplicas
private void scanWithReplicas(boolean reversed, boolean small, org.apache.hadoop.hbase.client.Consistency consistency, int caching, long maxResultSize, byte[] startRow, int numRows, int numCols, boolean staleExpected, boolean slowNext) throws Exception - Throws:
Exception
-