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
Exception
private org.apache.hadoop.hbase.regionserver.HRegionServer getRS()
public void testOpenRegionReplica() throws Exception
Exception
public void testRegionReplicaUpdatesMetaLocation() throws Exception
Exception
public void testRegionReplicaGets() throws Exception
Exception
public void testGetOnTargetRegionReplica() throws Exception
Exception
private void assertGet(org.apache.hadoop.hbase.regionserver.Region region, int value, boolean expect) throws IOException
IOException
private void assertGetRpc(org.apache.hadoop.hbase.HRegionInfo info, int value, boolean expect) throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOException
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
private void restartRegionServer() throws Exception
Exception
public void testRefresStoreFiles() throws Exception
Exception
public void testFlushAndCompactionsInPrimary() throws Exception
Exception
public void testVerifySecondaryAbilityToReadWithOnFiles() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.