New MasterObserver hook: post startup of active master
------------------------------------------------------
Key: HBASE-4011
URL: https://issues.apache.org/jira/browse/HBASE-4011
Project: HBase
Issue Type: Improvement
Components: coprocessors
Reporter: Gary Helmling
In working on security, we've found a need for a new notification point:
completion of startup for an active master instance. The idea is that this
would be called at the end of {{HMaster.finishInitialization()}}, after ROOT
and META have been assigned as a signal that the master is essentially "up" and
available.
So I propose that we add the following to {{MasterObserver}}:
{code}
/**
* Called immediately after an active master instance has completed
* initialization. Will not be called on standby master instances unless
* they take over the active role.
*/
void postStartMaster(final ObserverContext<MasterCoprocessorEnvironment> ctx)
throws IOException;
{code}
As an example, in the case of the security implementation, we want to use this
hook to check whether the {{\_acl\_}} table we use to store permission
assignments internally have been created and initialized.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira