public class TestRegionReplicas extends Object
TestRegionServerNoMaster.| 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 byte[] |
row |
private static org.apache.hadoop.hbase.client.Table |
table |
| Constructor and Description |
|---|
TestRegionReplicas() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass() |
private void |
assertGet(org.apache.hadoop.hbase.regionserver.Region region,
int value,
boolean expect) |
private void |
assertGetRpc(org.apache.hadoop.hbase.HRegionInfo info,
int value,
boolean expect) |
static void |
before() |
private org.apache.hadoop.hbase.regionserver.HRegionServer |
getRS() |
private void |
restartRegionServer() |
void |
testFlushAndCompactionsInPrimary() |
void |
testGetOnTargetRegionReplica() |
void |
testOpenRegionReplica() |
void |
testRefresStoreFiles() |
void |
testRegionReplicaGets() |
void |
testRegionReplicaUpdatesMetaLocation()
Tests that the meta location is saved for secondary regions
|
void |
testVerifySecondaryAbilityToReadWithOnFiles() |
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
public TestRegionReplicas()
public static void afterClass() throws Exception
Exceptionprivate org.apache.hadoop.hbase.regionserver.HRegionServer getRS()
public void testOpenRegionReplica() throws Exception
Exceptionpublic void testRegionReplicaUpdatesMetaLocation() throws Exception
Exceptionpublic void testRegionReplicaGets() throws Exception
Exceptionpublic void testGetOnTargetRegionReplica() throws Exception
Exceptionprivate void assertGet(org.apache.hadoop.hbase.regionserver.Region region, int value, boolean expect) throws IOException
IOExceptionprivate void assertGetRpc(org.apache.hadoop.hbase.HRegionInfo info, int value, boolean expect) throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOExceptionorg.apache.hbase.thirdparty.com.google.protobuf.ServiceExceptionprivate void restartRegionServer() throws Exception
Exceptionpublic void testRefresStoreFiles() throws Exception
Exceptionpublic void testFlushAndCompactionsInPrimary() throws Exception
Exceptionpublic void testVerifySecondaryAbilityToReadWithOnFiles() throws Exception
ExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.