public class TestRegionServerNoMaster
extends java.lang.Object
| Constructor and Description |
|---|
TestRegionServerNoMaster() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
static void |
afterClass() |
static void |
before() |
static void |
checkRegionIsClosed(HBaseTestingUtility HTU,
HRegionServer rs,
HRegionInfo hri) |
static void |
checkRegionIsOpened(HBaseTestingUtility HTU,
HRegionServer rs,
HRegionInfo hri) |
static void |
closeRegion(HBaseTestingUtility HTU,
HRegionServer rs,
HRegionInfo hri) |
static void |
flushRegion(HBaseTestingUtility HTU,
HRegionInfo regionInfo)
Flush the given region in the mini cluster.
|
static void |
openRegion(HBaseTestingUtility HTU,
HRegionServer rs,
HRegionInfo hri) |
static void |
stopMasterAndAssignMeta(HBaseTestingUtility HTU) |
void |
testCancelOpeningWithoutZK()
Test that if we do a close while opening it stops the opening.
|
void |
testCancelOpeningWithZK()
Test an open then a close with ZK.
|
void |
testCloseByMasterWithoutZNode() |
void |
testCloseByRegionServer() |
void |
testMultipleCloseFromMaster() |
void |
testMultipleOpen()
Test that we can send multiple openRegion to the region server.
|
void |
testOpenCloseByMasterWithZNode() |
void |
testOpenCloseRegionRPCIntendedForPreviousServer()
Tests an on-the-fly RPC that was scheduled for the earlier RS on the same port
for openRegion.
|
void |
testOpenClosingRegion() |
public static void before()
throws java.lang.Exception
java.lang.Exceptionpublic static void stopMasterAndAssignMeta(HBaseTestingUtility HTU) throws NodeExistsException, KeeperException, java.io.IOException, java.lang.InterruptedException
NodeExistsExceptionKeeperExceptionjava.io.IOExceptionjava.lang.InterruptedExceptionpublic static void flushRegion(HBaseTestingUtility HTU, HRegionInfo regionInfo) throws java.io.IOException
java.io.IOExceptionpublic static void afterClass()
throws java.lang.Exception
java.lang.Exceptionpublic void after()
throws java.lang.Exception
java.lang.Exceptionpublic static void openRegion(HBaseTestingUtility HTU, HRegionServer rs, HRegionInfo hri) throws java.lang.Exception
java.lang.Exceptionpublic static void checkRegionIsOpened(HBaseTestingUtility HTU, HRegionServer rs, HRegionInfo hri) throws java.lang.Exception
java.lang.Exceptionpublic static void closeRegion(HBaseTestingUtility HTU, HRegionServer rs, HRegionInfo hri) throws java.lang.Exception
java.lang.Exceptionpublic static void checkRegionIsClosed(HBaseTestingUtility HTU, HRegionServer rs, HRegionInfo hri) throws java.lang.Exception
java.lang.Exceptionpublic void testCloseByRegionServer()
throws java.lang.Exception
java.lang.Exceptionpublic void testCloseByMasterWithoutZNode()
throws java.lang.Exception
java.lang.Exceptionpublic void testOpenCloseByMasterWithZNode()
throws java.lang.Exception
java.lang.Exceptionpublic void testMultipleOpen()
throws java.lang.Exception
java.lang.Exceptionpublic void testOpenClosingRegion()
throws java.lang.Exception
java.lang.Exceptionpublic void testMultipleCloseFromMaster()
throws java.lang.Exception
java.lang.Exceptionpublic void testCancelOpeningWithoutZK()
throws java.lang.Exception
java.lang.Exceptionpublic void testCancelOpeningWithZK()
throws java.lang.Exception
java.lang.Exceptionpublic void testOpenCloseRegionRPCIntendedForPreviousServer()
throws java.lang.Exception
java.lang.Exception