public class TestRegionServerNoMaster extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.client.RegionInfo |
hri |
private static HBaseTestingUtil |
HTU |
private static org.slf4j.Logger |
LOG |
private static int |
NB_SERVERS |
private static byte[] |
regionName |
private static byte[] |
row |
private static org.apache.hadoop.hbase.client.Table |
table |
Constructor and Description |
---|
TestRegionServerNoMaster() |
Modifier and Type | Method and Description |
---|---|
static void |
afterClass() |
static void |
before() |
static void |
checkRegionIsClosed(HBaseTestingUtil HTU,
org.apache.hadoop.hbase.regionserver.HRegionServer rs,
org.apache.hadoop.hbase.client.RegionInfo hri) |
static void |
checkRegionIsOpened(HBaseTestingUtil HTU,
org.apache.hadoop.hbase.regionserver.HRegionServer rs,
org.apache.hadoop.hbase.client.RegionInfo hri) |
static void |
closeRegion(HBaseTestingUtil HTU,
org.apache.hadoop.hbase.regionserver.HRegionServer rs,
org.apache.hadoop.hbase.client.RegionInfo hri) |
private void |
closeRegionNoZK()
Close the region without using ZK
|
static void |
flushRegion(HBaseTestingUtil HTU,
org.apache.hadoop.hbase.client.RegionInfo regionInfo)
Flush the given region in the mini cluster.
|
private static org.apache.hadoop.hbase.regionserver.HRegionServer |
getRS() |
static void |
openRegion(HBaseTestingUtil HTU,
org.apache.hadoop.hbase.regionserver.HRegionServer rs,
org.apache.hadoop.hbase.client.RegionInfo hri) |
static void |
stopMasterAndCacheMetaLocation(HBaseTestingUtil HTU) |
void |
testCancelOpeningWithoutZK()
Test that if we do a close while opening it stops the opening.
|
void |
testCloseByRegionServer() |
void |
testInstallShutdownHook() |
void |
testMultipleCloseFromMaster() |
void |
testOpenCloseRegionRPCIntendedForPreviousServer()
Tests an on-the-fly RPC that was scheduled for the earlier RS on the same port for openRegion.
|
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.client.RegionInfo hri
private static byte[] regionName
private static final HBaseTestingUtil HTU
public TestRegionServerNoMaster()
public static void stopMasterAndCacheMetaLocation(HBaseTestingUtil HTU) throws IOException, InterruptedException
IOException
InterruptedException
public static void flushRegion(HBaseTestingUtil HTU, org.apache.hadoop.hbase.client.RegionInfo regionInfo) throws IOException
IOException
public static void afterClass() throws Exception
Exception
private static org.apache.hadoop.hbase.regionserver.HRegionServer getRS()
public static void openRegion(HBaseTestingUtil HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception
Exception
public static void checkRegionIsOpened(HBaseTestingUtil HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception
Exception
public static void closeRegion(HBaseTestingUtil HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception
Exception
public static void checkRegionIsClosed(HBaseTestingUtil HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.client.RegionInfo hri) throws Exception
Exception
private void closeRegionNoZK() throws Exception
Exception
public void testCloseByRegionServer() throws Exception
Exception
public void testMultipleCloseFromMaster() throws Exception
Exception
public void testCancelOpeningWithoutZK() throws Exception
Exception
public void testOpenCloseRegionRPCIntendedForPreviousServer() throws Exception
Exception
public void testInstallShutdownHook() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.