Class AlwaysStandByHMaster.AlwaysStandByMasterManager

java.lang.Object
org.apache.hadoop.hbase.zookeeper.ZKListener
org.apache.hadoop.hbase.master.ActiveMasterManager
org.apache.hadoop.hbase.master.AlwaysStandByHMaster.AlwaysStandByMasterManager
Enclosing class:
AlwaysStandByHMaster

private static class AlwaysStandByHMaster.AlwaysStandByMasterManager extends org.apache.hadoop.hbase.master.ActiveMasterManager
An implementation of ActiveMasterManager that never transitions it's master to active state. It always remains as a stand by master. With the master registry implementation (HBASE-18095) it is expected to have at least one active / standby master always running at any point in time since they serve as the gateway for client connections. With this implementation, tests can simulate the scenario of not having an active master yet the client connections to the cluster succeed.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final org.slf4j.Logger
     

    Fields inherited from class org.apache.hadoop.hbase.master.ActiveMasterManager

    activeMasterServerName, clusterHasActiveMaster, clusterShutDown, infoPort, master, sn

    Fields inherited from class org.apache.hadoop.hbase.zookeeper.ZKListener

    watcher
  • Constructor Summary

    Constructors
    Constructor
    Description
    AlwaysStandByMasterManager(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher, org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.Server master)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) boolean
    blockUntilBecomingActiveMaster(int checkInterval, org.apache.hadoop.hbase.monitoring.TaskGroup startupTaskGroup)
    An implementation that never transitions to an active master.

    Methods inherited from class org.apache.hadoop.hbase.master.ActiveMasterManager

    getActiveMasterInfoPort, getActiveMasterServerName, getBackupMasterInfoPort, getBackupMasters, handle, hasActiveMaster, nodeChildrenChanged, nodeCreated, nodeDeleted, setInfoPort, stop

    Methods inherited from class org.apache.hadoop.hbase.zookeeper.ZKListener

    getWatcher, nodeDataChanged

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
  • Constructor Details

  • Method Details

    • blockUntilBecomingActiveMaster

      boolean blockUntilBecomingActiveMaster(int checkInterval, org.apache.hadoop.hbase.monitoring.TaskGroup startupTaskGroup)
      An implementation that never transitions to an active master.
      Overrides:
      blockUntilBecomingActiveMaster in class org.apache.hadoop.hbase.master.ActiveMasterManager