Package org.apache.hadoop.hbase.master
Class TestMasterNoCluster
java.lang.Object
org.apache.hadoop.hbase.master.TestMasterNoCluster
Standup the master and fake it to test various aspects of master function. Does NOT spin up a
mini hbase nor mini dfs cluster testing master (it does put up a zk cluster but this is usually
pretty fast compared). Also, should be possible to inject faults at points difficult to get at in
cluster context. TODO: Speed up the zk connection by Master. It pauses 5 seconds establishing
session.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
void
tearDown()
static void
void
Test master failover.void
void
void
Test starting master then stopping it before its fully up.
-
Field Details
-
CLASS_RULE
-
LOG
-
TESTUTIL
-
name
-
-
Constructor Details
-
TestMasterNoCluster
public TestMasterNoCluster()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
tearDown
public void tearDown() throws org.apache.zookeeper.KeeperException, org.apache.hadoop.hbase.ZooKeeperConnectionException, IOException- Throws:
org.apache.zookeeper.KeeperException
org.apache.hadoop.hbase.ZooKeeperConnectionException
IOException
-
testStopDuringStart
public void testStopDuringStart() throws IOException, org.apache.zookeeper.KeeperException, InterruptedExceptionTest starting master then stopping it before its fully up.- Throws:
IOException
org.apache.zookeeper.KeeperException
InterruptedException
-
testFailover
Test master failover. Start up three fake regionservers and a master.- Throws:
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
Exception
-
testMasterInitWithSameClientServerZKQuorum
- Throws:
Exception
-
testMasterInitWithObserverModeClientZKQuorum
- Throws:
Exception
-