hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Purtell (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HBASE-12126) Region server coprocessor endpoint
Date Tue, 30 Sep 2014 22:46:34 GMT

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

Andrew Purtell edited comment on HBASE-12126 at 9/30/14 10:46 PM:
------------------------------------------------------------------

bq. With the above code in patch, coprocessors like AccessController serving as region endpoint
and as an observer for Regionserver will now also be registered as endpoint for region server

I think we need a new interface to avoid that. Region endpoints aren't going to function correctly
if invoked from a different context. 

How about:
{code}
    if (SingletonCoprocessorService.class.isAssignableFrom(c)) {
          this.regionServerServices.registerService(((SingletonCoprocessorService) impl).getService());
          break;
    }
{code}
?

Maybe there's a better name but it's not totally off because there will only be one service
instance of this type per regionserver.


was (Author: apurtell):
bq. With the above code in patch, coprocessors like AccessController serving as region endpoint
and as an observer for Regionserver will now also be registered as endpoint for region server

I think we need a new interface to avoid that. Region endpoints aren't going to function correctly
if invoked from a different context. 

How about:
{code}
    if (SingletonCoprocessorService.class.isAssignableFrom(c)) {
          this.regionServerServices.registerService(((CoprocessorService) impl).getService());
          break;
    }
{code}
?

Maybe there's a better name but it's not totally off because there will only be one service
instance of this type per regionserver.

> Region server coprocessor endpoint
> ----------------------------------
>
>                 Key: HBASE-12126
>                 URL: https://issues.apache.org/jira/browse/HBASE-12126
>             Project: HBase
>          Issue Type: Bug
>          Components: Coprocessors
>    Affects Versions: 0.98.6
>            Reporter: Virag Kothari
>         Attachments: HBASE-12126-0.98.patch
>
>
> Primary use case in HBASE-12125 but being able to make endpoint calls against region
server can be useful in general.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message