public class TestActiveMasterManager extends Object
ActiveMasterManager
.Modifier and Type | Class and Description |
---|---|
static class |
TestActiveMasterManager.DummyMaster
Dummy Master Implementation.
|
static class |
TestActiveMasterManager.NodeDeletionListener |
static class |
TestActiveMasterManager.WaitToBeMasterThread |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestActiveMasterManager() |
Modifier and Type | Method and Description |
---|---|
private 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.
|
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testActiveMasterManagerFromZK()
Unit tests that uses ZooKeeper but does not use the master-side methods but rather acts
directly on ZK.
|
void |
testBackupMasterUpdates() |
void |
testRestartMaster() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
public TestActiveMasterManager()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testRestartMaster() throws IOException, org.apache.zookeeper.KeeperException
IOException
org.apache.zookeeper.KeeperException
public void testActiveMasterManagerFromZK() throws Exception
Exception
public void testBackupMasterUpdates() throws Exception
Exception
private void assertMaster(org.apache.hadoop.hbase.zookeeper.ZKWatcher zk, org.apache.hadoop.hbase.ServerName expectedAddress) throws org.apache.zookeeper.KeeperException, IOException
zk
- single Zookeeper watcherexpectedAddress
- the expected address of the masterorg.apache.zookeeper.KeeperException
- unexpected Zookeeper exceptionIOException
- if an IO problem is encounteredCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.