public class TestRegionServerNoMaster extends 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 stopMasterAndAssignMeta(HBaseTestingUtility HTU) throws NodeExistsException, KeeperException, IOException, InterruptedException
NodeExistsExceptionKeeperExceptionIOExceptionInterruptedExceptionpublic static void flushRegion(HBaseTestingUtility HTU, HRegionInfo regionInfo) throws IOException
IOExceptionpublic static void openRegion(HBaseTestingUtility HTU, HRegionServer rs, HRegionInfo hri) throws Exception
Exceptionpublic static void checkRegionIsOpened(HBaseTestingUtility HTU, HRegionServer rs, HRegionInfo hri) throws Exception
Exceptionpublic static void closeRegion(HBaseTestingUtility HTU, HRegionServer rs, HRegionInfo hri) throws Exception
Exceptionpublic static void checkRegionIsClosed(HBaseTestingUtility HTU, HRegionServer rs, HRegionInfo hri) throws Exception
Exceptionpublic void testCloseByMasterWithoutZNode()
throws Exception
Exceptionpublic void testOpenCloseByMasterWithZNode()
throws Exception
Exceptionpublic void testMultipleOpen()
throws Exception
Exceptionpublic void testMultipleCloseFromMaster()
throws Exception
Exceptionpublic void testCancelOpeningWithoutZK()
throws Exception
Exceptionpublic void testCancelOpeningWithZK()
throws Exception
Exception