public class TestReplicasClient extends Object
TestRegionServerNoMaster.| Modifier and Type | Class and Description |
|---|---|
static class |
TestReplicasClient.SlowMeCopro
This copro is used to synchronize the tests.
|
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
f |
private static org.apache.hadoop.hbase.client.RegionInfo |
hriPrimary |
private static org.apache.hadoop.hbase.client.RegionInfo |
hriSecondary |
private static HBaseTestingUtility |
HTU |
private static org.slf4j.Logger |
LOG |
private static int |
REFRESH_PERIOD |
private static byte[] |
row |
private org.apache.hadoop.hbase.client.Table |
table |
private static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
| Constructor and Description |
|---|
TestReplicasClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
static void |
afterClass() |
void |
before() |
static void |
beforeClass() |
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) |
private void |
runMultipleScansOfOneType(boolean reversed,
boolean small) |
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) |
void |
testCancelOfScan() |
void |
testFlushPrimary() |
void |
testFlushSecondary() |
void |
testFlushTable() |
void |
testGetNoResultNoStaleRegionWithReplica() |
void |
testGetNoResultNotStaleSleepRegionWithReplica() |
void |
testGetNoResultStaleRegionWithReplica() |
void |
testHedgedRead() |
void |
testLocations() |
void |
testReverseScanOnSpecificReplica() |
void |
testReverseScanWithReplicas() |
void |
testScanOnSpecificReplica() |
void |
testScanWithReplicas() |
void |
testSmallScanWithReplicas() |
void |
testUseRegionWithoutReplica() |
void |
testUseRegionWithReplica() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static org.apache.hadoop.hbase.TableName TABLE_NAME
private org.apache.hadoop.hbase.client.Table table
private static final byte[] row
private static org.apache.hadoop.hbase.client.RegionInfo hriPrimary
private static org.apache.hadoop.hbase.client.RegionInfo hriSecondary
private static final HBaseTestingUtility HTU
private static final byte[] f
private static final int REFRESH_PERIOD
public TestReplicasClient()
public static void beforeClass() throws Exception
Exceptionpublic static void afterClass() throws Exception
Exceptionpublic void before() throws IOException
IOExceptionpublic void after() throws IOException, org.apache.zookeeper.KeeperException
IOExceptionorg.apache.zookeeper.KeeperExceptionprivate org.apache.hadoop.hbase.regionserver.HRegionServer getRS()
private void openRegion(org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception
Exceptionprivate void closeRegion(org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception
Exceptionprivate void checkRegionIsOpened(org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception
Exceptionprivate boolean isRegionOpened(org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception
Exceptionprivate void checkRegionIsClosed(String encodedRegionName) throws Exception
Exceptionprivate void flushRegion(org.apache.hadoop.hbase.client.RegionInfo regionInfo) throws IOException
IOExceptionpublic void testUseRegionWithoutReplica() throws Exception
Exceptionpublic void testLocations() throws Exception
Exceptionpublic void testGetNoResultNoStaleRegionWithReplica() throws Exception
Exceptionpublic void testGetNoResultStaleRegionWithReplica() throws Exception
Exceptionpublic void testGetNoResultNotStaleSleepRegionWithReplica() throws Exception
Exceptionpublic void testFlushTable() throws Exception
Exceptionpublic void testFlushPrimary() throws Exception
Exceptionpublic void testFlushSecondary() throws Exception
Exceptionpublic void testUseRegionWithReplica() throws Exception
Exceptionpublic void testHedgedRead() throws Exception
Exceptionpublic void testScanWithReplicas() throws Exception
Exceptionpublic void testSmallScanWithReplicas() throws Exception
Exceptionpublic void testReverseScanWithReplicas() throws Exception
Exceptionpublic void testCancelOfScan() throws Exception
Exceptionpublic void testScanOnSpecificReplica() throws Exception
Exceptionpublic void testReverseScanOnSpecificReplica() throws Exception
Exceptionprivate void runMultipleScansOfOneType(boolean reversed, boolean small) throws Exception
Exceptionprivate 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
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.