public class TestRegionRebalancing extends Object
Modifier and Type | Field and Description |
---|---|
private String |
balancerName |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.hbase.HTableDescriptor |
desc |
private static byte[] |
FAMILY_NAME |
private static org.slf4j.Logger |
LOG |
private org.apache.hadoop.hbase.client.RegionLocator |
regionLocator |
private HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestRegionRebalancing(String balancerName) |
Modifier and Type | Method and Description |
---|---|
void |
after() |
private void |
assertRegionsAreBalanced()
Determine if regions are balanced.
|
void |
before() |
static Collection<Object[]> |
data() |
private List<org.apache.hadoop.hbase.regionserver.HRegionServer> |
getOnlineRegionServers() |
void |
testRebalanceOnRegionServerNumberChange()
For HBASE-71.
|
private void |
waitForAllRegionsAssigned()
Wait until all the regions are assigned.
|
private void |
waitOnCrashProcessing()
Wait on crash processing.
|
public static final HBaseClassTestRule CLASS_RULE
private static final byte[] FAMILY_NAME
private static final org.slf4j.Logger LOG
private final HBaseTestingUtility UTIL
private org.apache.hadoop.hbase.client.RegionLocator regionLocator
private org.apache.hadoop.hbase.HTableDescriptor desc
private String balancerName
public TestRegionRebalancing(String balancerName)
public static Collection<Object[]> data()
public void testRebalanceOnRegionServerNumberChange() throws IOException, InterruptedException
IOException
InterruptedException
private void waitOnCrashProcessing()
private void assertRegionsAreBalanced() throws IOException
IOException
private List<org.apache.hadoop.hbase.regionserver.HRegionServer> getOnlineRegionServers()
private void waitForAllRegionsAssigned() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.