Package org.apache.hadoop.hbase.master
Class TestActiveMasterManager
java.lang.Object
org.apache.hadoop.hbase.master.TestActiveMasterManager
Test the
ActiveMasterManager.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDummy Master Implementation.static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.Loggerprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertMaster(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.TaskGroupstatic voidstatic voidvoidUnit tests that uses ZooKeeper but does not use the master-side methods but rather acts directly on ZK.voidvoid
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
-
Constructor Details
-
TestActiveMasterManager
public TestActiveMasterManager()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
testRestartMaster
- Throws:
IOExceptionorg.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
-