public class TestRegionServerNoMaster extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.HRegionInfo |
hri |
private static HBaseTestingUtility |
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(HBaseTestingUtility HTU,
org.apache.hadoop.hbase.regionserver.HRegionServer rs,
org.apache.hadoop.hbase.HRegionInfo hri) |
static void |
checkRegionIsOpened(HBaseTestingUtility HTU,
org.apache.hadoop.hbase.regionserver.HRegionServer rs,
org.apache.hadoop.hbase.HRegionInfo hri) |
static void |
closeRegion(HBaseTestingUtility HTU,
org.apache.hadoop.hbase.regionserver.HRegionServer rs,
org.apache.hadoop.hbase.HRegionInfo hri) |
private void |
closeRegionNoZK()
Close the region without using ZK
|
static void |
flushRegion(HBaseTestingUtility 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(HBaseTestingUtility HTU,
org.apache.hadoop.hbase.regionserver.HRegionServer rs,
org.apache.hadoop.hbase.HRegionInfo hri) |
static void |
stopMasterAndCacheMetaLocation(HBaseTestingUtility HTU) |
void |
testCancelOpeningWithoutZK()
Test that if we do a close while opening it stops the opening.
|
void |
testCloseByRegionServer() |
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.HRegionInfo hri
private static byte[] regionName
private static final HBaseTestingUtility HTU
public TestRegionServerNoMaster()
public static void stopMasterAndCacheMetaLocation(HBaseTestingUtility HTU) throws IOException, InterruptedException
IOException
InterruptedException
public static void flushRegion(HBaseTestingUtility 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(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo hri) throws Exception
Exception
public static void checkRegionIsOpened(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo hri) throws Exception
Exception
public static void closeRegion(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo hri) throws Exception
Exception
public static void checkRegionIsClosed(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo 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
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.