Package org.apache.hadoop.hbase.master
Class TestActiveMasterManager
java.lang.Object
org.apache.hadoop.hbase.master.TestActiveMasterManager
Test the
ActiveMasterManager
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Dummy Master Implementation.static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertMaster
(org.apache.hadoop.hbase.zookeeper.ZKWatcher zk, org.apache.hadoop.hbase.ServerName expectedAddress) Assert there is an active master and that it has the specified address.private static org.apache.hadoop.hbase.monitoring.TaskGroup
static void
static void
void
Unit tests that uses ZooKeeper but does not use the master-side methods but rather acts directly on ZK.void
void
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
-
Constructor Details
-
TestActiveMasterManager
public TestActiveMasterManager()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
testRestartMaster
- Throws:
IOException
org.apache.zookeeper.KeeperException
-
testActiveMasterManagerFromZK
Unit tests that uses ZooKeeper but does not use the master-side methods but rather acts directly on ZK.- Throws:
Exception
-
testBackupMasterUpdates
- Throws:
Exception
-
assertMaster
private void assertMaster(org.apache.hadoop.hbase.zookeeper.ZKWatcher zk, org.apache.hadoop.hbase.ServerName expectedAddress) throws org.apache.zookeeper.KeeperException, IOException Assert there is an active master and that it has the specified address.- Parameters:
zk
- single Zookeeper watcherexpectedAddress
- the expected address of the master- Throws:
org.apache.zookeeper.KeeperException
- unexpected Zookeeper exceptionIOException
- if an IO problem is encountered
-
mockTaskGroup
-