public class TestReplicaWithCluster extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestReplicaWithCluster.RegionServerHostingPrimayMetaRegionSlowOrStopCopro
This copro is used to slow down the primary meta region scan a bit
|
static class |
TestReplicaWithCluster.RegionServerStoppedCopro
This copro is used to simulate region server down exception for Get and Scan
|
static class |
TestReplicaWithCluster.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 HBaseTestingUtility |
HTU |
private static HBaseTestingUtility |
HTU2 |
private static org.slf4j.Logger |
LOG |
private static int |
META_SCAN_TIMEOUT_IN_MILLISEC |
org.junit.rules.TestName |
name |
private static int |
NB_SERVERS |
private static int |
REFRESH_PERIOD |
private static byte[] |
row |
| Constructor and Description |
|---|
TestReplicaWithCluster() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass() |
static void |
beforeClass() |
void |
testBulkLoad() |
void |
testChangeTable() |
void |
testCreateDeleteTable() |
void |
testGetRegionLocationFromPrimaryMetaRegion() |
void |
testReplicaAndReplication() |
void |
testReplicaGetWithAsyncRpcClientImpl() |
void |
testReplicaGetWithPrimaryAndMetaDown() |
void |
testReplicaGetWithPrimaryDown() |
void |
testReplicaScanWithPrimaryDown() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final int NB_SERVERS
private static final byte[] row
private static final HBaseTestingUtility HTU
private static HBaseTestingUtility HTU2
private static final byte[] f
private static final int REFRESH_PERIOD
private static final int META_SCAN_TIMEOUT_IN_MILLISEC
public org.junit.rules.TestName name
public TestReplicaWithCluster()
public static void beforeClass() throws Exception
Exceptionpublic static void afterClass() throws Exception
Exceptionpublic void testCreateDeleteTable() throws IOException
IOExceptionpublic void testChangeTable() throws Exception
Exceptionpublic void testReplicaAndReplication() throws Exception
Exceptionpublic void testBulkLoad() throws IOException
IOExceptionpublic void testReplicaGetWithPrimaryDown() throws IOException
IOExceptionpublic void testReplicaScanWithPrimaryDown() throws IOException
IOExceptionpublic void testReplicaGetWithAsyncRpcClientImpl() throws IOException
IOExceptionpublic void testGetRegionLocationFromPrimaryMetaRegion() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testReplicaGetWithPrimaryAndMetaDown() throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.