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.HRegionInfo |
hriPrimary |
private static org.apache.hadoop.hbase.HRegionInfo |
hriSecondary |
private static HBaseTestingUtility |
HTU |
private static org.slf4j.Logger |
LOG |
private static int |
NB_SERVERS |
private static int |
REFRESH_PERIOD |
private static byte[] |
row |
private static org.apache.hadoop.hbase.client.Table |
table |
| 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.HRegionInfo hri) |
private void |
closeRegion(org.apache.hadoop.hbase.HRegionInfo hri) |
private void |
flushRegion(org.apache.hadoop.hbase.HRegionInfo regionInfo) |
private org.apache.hadoop.hbase.regionserver.HRegionServer |
getRS() |
private boolean |
isRegionOpened(org.apache.hadoop.hbase.HRegionInfo hri) |
private void |
openRegion(org.apache.hadoop.hbase.HRegionInfo 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 |
testCancelOfMultiGet() |
void |
testCancelOfScan() |
void |
testFlushPrimary() |
void |
testFlushSecondary() |
void |
testFlushTable() |
void |
testGetNoResultNoStaleRegionWithReplica() |
void |
testGetNoResultNotStaleSleepRegionWithReplica() |
void |
testGetNoResultStaleRegionWithReplica() |
void |
testHedgedRead() |
void |
testLocations() |
void |
testReverseScanWithReplicas() |
void |
testScanWithReplicas() |
void |
testSmallScanWithReplicas() |
void |
testUseRegionWithoutReplica() |
void |
testUseRegionWithReplica() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final int NB_SERVERS
private static org.apache.hadoop.hbase.client.Table table
private static final byte[] row
private static org.apache.hadoop.hbase.HRegionInfo hriPrimary
private static org.apache.hadoop.hbase.HRegionInfo 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.HRegionInfo hri) throws Exception
Exceptionprivate void closeRegion(org.apache.hadoop.hbase.HRegionInfo hri) throws Exception
Exceptionprivate void checkRegionIsOpened(org.apache.hadoop.hbase.HRegionInfo hri) throws Exception
Exceptionprivate boolean isRegionOpened(org.apache.hadoop.hbase.HRegionInfo hri) throws Exception
Exceptionprivate void checkRegionIsClosed(String encodedRegionName) throws Exception
Exceptionprivate void flushRegion(org.apache.hadoop.hbase.HRegionInfo 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 testCancelOfMultiGet() throws Exception
Exceptionpublic void testScanWithReplicas() throws Exception
Exceptionpublic void testSmallScanWithReplicas() throws Exception
Exceptionpublic void testReverseScanWithReplicas() throws Exception
Exceptionpublic void testCancelOfScan() 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.