Class TestActiveMasterManager

java.lang.Object
org.apache.hadoop.hbase.master.TestActiveMasterManager

@Tag("org.apache.hadoop.hbase.testclassification.MasterTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests") public class TestActiveMasterManager extends Object
Test the ActiveMasterManager.
  • Field Details

  • Constructor Details

  • Method Details

    • setUpBeforeClass

      @BeforeAll public static void setUpBeforeClass() throws Exception
      Throws:
      Exception
    • tearDownAfterClass

      @AfterAll public static void tearDownAfterClass() throws Exception
      Throws:
      Exception
    • testRestartMaster

      @Test public void testRestartMaster() throws IOException, org.apache.zookeeper.KeeperException
      Throws:
      IOException
      org.apache.zookeeper.KeeperException
    • testActiveMasterManagerFromZK

      @Test public void testActiveMasterManagerFromZK() throws Exception
      Unit tests that uses ZooKeeper but does not use the master-side methods but rather acts directly on ZK.
      Throws:
      Exception
    • testBackupMasterUpdates

      @Test public void testBackupMasterUpdates() throws Exception
      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 watcher
      expectedAddress - the expected address of the master
      Throws:
      org.apache.zookeeper.KeeperException - unexpected Zookeeper exception
      IOException - if an IO problem is encountered
    • mockTaskGroup

      private static org.apache.hadoop.hbase.monitoring.TaskGroup mockTaskGroup()