public class TestOpenRegionHandler
extends java.lang.Object
OpenRegionHandler.| Constructor and Description |
|---|
TestOpenRegionHandler() |
| Modifier and Type | Method and Description |
|---|---|
static void |
after() |
static void |
before() |
void |
setupHRI()
Before each test, use a different HRI, so the different tests
don't interfere with each other.
|
void |
testFailedOpenRegion() |
void |
testFailedUpdateMeta() |
void |
testRegionServerAbortionDueToFailureTransitioningToOpened()
Test the openregionhandler can deal with perceived failure of transitioning to OPENED state
due to intermittent zookeeper malfunctioning.
|
void |
testTransitionToFailedOpenEvenIfCleanupFails() |
void |
testTransitionToFailedOpenFromOffline() |
void |
testYankingRegionFromUnderIt()
Test the openregionhandler can deal with its znode being yanked out from
under it.
|
public static void before()
throws java.lang.Exception
java.lang.Exceptionpublic static void after()
throws java.io.IOException
java.io.IOExceptionpublic void setupHRI()
public void testYankingRegionFromUnderIt()
throws java.io.IOException,
NodeExistsException,
KeeperException
java.io.IOExceptionNodeExistsExceptionKeeperExceptionpublic void testRegionServerAbortionDueToFailureTransitioningToOpened()
throws java.io.IOException,
NodeExistsException,
KeeperException
java.io.IOExceptionNodeExistsExceptionKeeperExceptionpublic void testFailedOpenRegion()
throws java.lang.Exception
java.lang.Exceptionpublic void testFailedUpdateMeta()
throws java.lang.Exception
java.lang.Exceptionpublic void testTransitionToFailedOpenEvenIfCleanupFails()
throws java.lang.Exception
java.lang.Exceptionpublic void testTransitionToFailedOpenFromOffline()
throws java.lang.Exception
java.lang.Exception