Package org.apache.hadoop.hbase.master
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 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
ConstructorDescriptionAlwaysStandByMasterManager
(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher, org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.Server master) -
Method Summary
Modifier and TypeMethodDescription(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
-
Field Details
-
LOG
-
-
Constructor Details
-
AlwaysStandByMasterManager
AlwaysStandByMasterManager(org.apache.hadoop.hbase.zookeeper.ZKWatcher watcher, org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.Server master) throws InterruptedIOException - Throws:
InterruptedIOException
-
-
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 classorg.apache.hadoop.hbase.master.ActiveMasterManager
-