hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anoop Sam John (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-19007) Align Services Interfaces in Master and RegionServer
Date Tue, 17 Oct 2017 13:44:00 GMT

    [ https://issues.apache.org/jira/browse/HBASE-19007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16207653#comment-16207653

Anoop Sam John commented on HBASE-19007:

Generally I like and agree to the idea of not expose the RSS or MS at all directly..  The
methods here which we have to expose to CPs to be added to the *CPEnvironment.   Internally
the environment classes get these functions from the RSS or MS.
Ya our own CPs is a problem maker in this cleanup effort.  These clearly suggests we must
impl them as core functions (AC,  VC etc)
For temp what we can do is type cast the environment objects to impl classes and get the RSS
or MS from it.
In any CP like AC, we get RegionCoprocessorEnvironment.
RegionEnvironment re = (RegionEnvironment)rce
re.getRegionServerServices()   and make use of the functions..   
This will be the most simple way even though it look ugly.

> Align Services Interfaces in Master and RegionServer
> ----------------------------------------------------
>                 Key: HBASE-19007
>                 URL: https://issues.apache.org/jira/browse/HBASE-19007
>             Project: HBase
>          Issue Type: Task
>            Reporter: stack
>            Priority: Blocker
>         Attachments: HBASE-19007.master.001.patch
> HBASE-18183 adds a CoprocessorRegionServerService to give a view on RegionServiceServices
that is safe to expose to Coprocessors.
> On the Master-side, MasterServices becomes an Interface for exposing to Coprocessors.
> We need to align the two.
> For background, see https://issues.apache.org/jira/browse/HBASE-12260?focusedCommentId=16203820&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16203820

This message was sent by Atlassian JIRA

View raw message