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
Exception
public static void afterClass() throws Exception
Exception
public void before() throws IOException
IOException
public void after() throws IOException, org.apache.zookeeper.KeeperException
IOException
org.apache.zookeeper.KeeperException
private org.apache.hadoop.hbase.regionserver.HRegionServer getRS()
private void openRegion(org.apache.hadoop.hbase.HRegionInfo hri) throws Exception
Exception
private void closeRegion(org.apache.hadoop.hbase.HRegionInfo hri) throws Exception
Exception
private void checkRegionIsOpened(org.apache.hadoop.hbase.HRegionInfo hri) throws Exception
Exception
private boolean isRegionOpened(org.apache.hadoop.hbase.HRegionInfo hri) throws Exception
Exception
private void checkRegionIsClosed(String encodedRegionName) throws Exception
Exception
private void flushRegion(org.apache.hadoop.hbase.HRegionInfo regionInfo) throws IOException
IOException
public void testUseRegionWithoutReplica() throws Exception
Exception
public void testLocations() throws Exception
Exception
public void testGetNoResultNoStaleRegionWithReplica() throws Exception
Exception
public void testGetNoResultStaleRegionWithReplica() throws Exception
Exception
public void testGetNoResultNotStaleSleepRegionWithReplica() throws Exception
Exception
public void testFlushTable() throws Exception
Exception
public void testFlushPrimary() throws Exception
Exception
public void testFlushSecondary() throws Exception
Exception
public void testUseRegionWithReplica() throws Exception
Exception
public void testHedgedRead() throws Exception
Exception
public void testCancelOfMultiGet() throws Exception
Exception
public void testScanWithReplicas() throws Exception
Exception
public void testSmallScanWithReplicas() throws Exception
Exception
public void testReverseScanWithReplicas() throws Exception
Exception
public void testCancelOfScan() throws Exception
Exception
private void runMultipleScansOfOneType(boolean reversed, boolean small) throws Exception
Exception
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
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.