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
Exception
public static void afterClass() throws Exception
Exception
public void testCreateDeleteTable() throws IOException
IOException
public void testChangeTable() throws Exception
Exception
public void testReplicaAndReplication() throws Exception
Exception
public void testBulkLoad() throws IOException
IOException
public void testReplicaGetWithPrimaryDown() throws IOException
IOException
public void testReplicaScanWithPrimaryDown() throws IOException
IOException
public void testReplicaGetWithAsyncRpcClientImpl() throws IOException
IOException
public void testGetRegionLocationFromPrimaryMetaRegion() throws IOException, InterruptedException
IOException
InterruptedException
public void testReplicaGetWithPrimaryAndMetaDown() throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.