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.HRegionInfo 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 |
stopMasterAndAssignMeta(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 stopMasterAndAssignMeta(HBaseTestingUtility HTU) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static void flushRegion(HBaseTestingUtility HTU, org.apache.hadoop.hbase.HRegionInfo regionInfo) throws IOException
IOExceptionpublic static void afterClass() throws Exception
Exceptionprivate 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
Exceptionpublic static void checkRegionIsOpened(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo hri) throws Exception
Exceptionpublic static void closeRegion(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo hri) throws Exception
Exceptionpublic static void checkRegionIsClosed(HBaseTestingUtility HTU, org.apache.hadoop.hbase.regionserver.HRegionServer rs, org.apache.hadoop.hbase.HRegionInfo hri) throws Exception
Exceptionprivate void closeRegionNoZK() throws Exception
Exceptionpublic void testCloseByRegionServer() throws Exception
Exceptionpublic void testMultipleCloseFromMaster() throws Exception
Exceptionpublic void testCancelOpeningWithoutZK() throws Exception
Exceptionpublic void testOpenCloseRegionRPCIntendedForPreviousServer() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.