public class TestRegionReplicasWithModifyTable extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
f |
private static HBaseTestingUtility |
HTU |
org.junit.rules.TestName |
name |
private static int |
NB_SERVERS |
private static byte[] |
row |
private static org.apache.hadoop.hbase.client.Table |
table |
Constructor and Description |
---|
TestRegionReplicasWithModifyTable() |
Modifier and Type | Method and Description |
---|---|
static void |
afterClass() |
static void |
before() |
private void |
disableAndDeleteTable(org.apache.hadoop.hbase.TableName tableName) |
private static void |
enableReplicationByModification(org.apache.hadoop.hbase.TableName tableName,
boolean withReplica,
int initialReplicaCount,
int enableReplicaCount,
int splitCount) |
private org.apache.hadoop.hbase.regionserver.HRegionServer |
getRS() |
private org.apache.hadoop.hbase.regionserver.HRegionServer |
getSecondaryRS() |
private static byte[][] |
getSplits(int numRegions) |
private org.apache.hadoop.hbase.regionserver.HRegionServer |
getTertiaryRS() |
void |
testRegionReplicasByEnableTableWhenReplicaCountIsDecreased() |
void |
testRegionReplicasByEnableTableWhenReplicaCountIsDecreasedWithMultipleRegions() |
void |
testRegionReplicasByEnableTableWhenReplicaCountIsIncreased() |
void |
testRegionReplicasByEnableTableWhenReplicaCountIsIncreasedWithmultipleRegions() |
void |
testRegionReplicasUsingEnableTable() |
void |
testRegionReplicasUsingEnableTableForMultipleRegions() |
public static final HBaseClassTestRule CLASS_RULE
private static final int NB_SERVERS
private static org.apache.hadoop.hbase.client.Table table
private static final byte[] row
private static final HBaseTestingUtility HTU
private static final byte[] f
public org.junit.rules.TestName name
public TestRegionReplicasWithModifyTable()
private static void enableReplicationByModification(org.apache.hadoop.hbase.TableName tableName, boolean withReplica, int initialReplicaCount, int enableReplicaCount, int splitCount) throws IOException, InterruptedException
IOException
InterruptedException
private static byte[][] getSplits(int numRegions)
public static void afterClass() throws Exception
Exception
private org.apache.hadoop.hbase.regionserver.HRegionServer getRS()
private org.apache.hadoop.hbase.regionserver.HRegionServer getSecondaryRS()
private org.apache.hadoop.hbase.regionserver.HRegionServer getTertiaryRS()
public void testRegionReplicasUsingEnableTable() throws Exception
Exception
private void disableAndDeleteTable(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOException
public void testRegionReplicasUsingEnableTableForMultipleRegions() throws Exception
Exception
public void testRegionReplicasByEnableTableWhenReplicaCountIsIncreased() throws Exception
Exception
public void testRegionReplicasByEnableTableWhenReplicaCountIsDecreased() throws Exception
Exception
public void testRegionReplicasByEnableTableWhenReplicaCountIsDecreasedWithMultipleRegions() throws Exception
Exception
public void testRegionReplicasByEnableTableWhenReplicaCountIsIncreasedWithmultipleRegions() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.