You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Appy (JIRA)" <ji...@apache.org> on 2017/10/04 01:37:00 UTC
[jira] [Updated] (HBASE-18931) Make ObserverContext an interface
and remove private/testing methods
[ https://issues.apache.org/jira/browse/HBASE-18931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Appy updated HBASE-18931:
-------------------------
Attachment: HBASE-18931.master.001.patch
> Make ObserverContext an interface and remove private/testing methods
> --------------------------------------------------------------------
>
> Key: HBASE-18931
> URL: https://issues.apache.org/jira/browse/HBASE-18931
> Project: HBase
> Issue Type: Sub-task
> Components: Coprocessors
> Reporter: Appy
> Fix For: 2.0.0-alpha-4
>
> Attachments: HBASE-18931.master.001.patch
>
>
> ObserverContext is IA.LimitedPrivate because CP implementations might want to use getEnvironment(), bypass(), complete(), getCaller(), etc.
> However, they are not supposed to be using the following:
> - Constructor : Only CPHost can create contexts.
> - prepare(E env) : this is for internal use only.
> - createAndPrepare() : ObserverContext is created in context of a CPHost. Third party have use accessing constructor or these factory methods. Internally, these fns are used only by our tests.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)