You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Gary Helmling (JIRA)" <ji...@apache.org> on 2011/06/21 01:30:47 UTC
[jira] [Created] (HBASE-4011) New MasterObserver hook: post startup
of active master
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
[jira] [Updated] (HBASE-4011) New MasterObserver hook: post startup
of active master
Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-4011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Purtell updated HBASE-4011:
----------------------------------
Fix Version/s: 0.92.0
Assignee: Gary Helmling
+1
> 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
> Assignee: Gary Helmling
> Fix For: 0.92.0
>
>
> 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
[jira] [Commented] (HBASE-4011) New MasterObserver hook: post
startup of active master
Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-4011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052283#comment-13052283 ]
Andrew Purtell commented on HBASE-4011:
---------------------------------------
+1 on patch. Code is safe in that nothing happens if no MasterObserver is registered and exceptions in the CP won't kill the master.
> 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
> Assignee: Gary Helmling
> Fix For: 0.92.0
>
> Attachments: HBASE-4011.patch
>
>
> 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
[jira] [Resolved] (HBASE-4011) New MasterObserver hook: post
startup of active master
Posted by "Gary Helmling (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-4011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Helmling resolved HBASE-4011.
----------------------------------
Resolution: Fixed
Patch committed to trunk.
> 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
> Assignee: Gary Helmling
> Fix For: 0.92.0
>
> Attachments: HBASE-4011.patch
>
>
> 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
[jira] [Commented] (HBASE-4011) New MasterObserver hook: post
startup of active master
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-4011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13056858#comment-13056858 ]
Hudson commented on HBASE-4011:
-------------------------------
Integrated in HBase-TRUNK #1995 (See [https://builds.apache.org/job/HBase-TRUNK/1995/])
> 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
> Assignee: Gary Helmling
> Fix For: 0.92.0
>
> Attachments: HBASE-4011.patch
>
>
> 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
[jira] [Updated] (HBASE-4011) New MasterObserver hook: post startup
of active master
Posted by "Gary Helmling (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-4011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Helmling updated HBASE-4011:
---------------------------------
Attachment: HBASE-4011.patch
Patch adding a new MasterObserver.postStartMaster() hook that is invoked at the end of HMaster.finishInitialization().
> 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
> Assignee: Gary Helmling
> Fix For: 0.92.0
>
> Attachments: HBASE-4011.patch
>
>
> 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