hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Shvachko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-6340) HBase RPC does not allow protocol extension with common interfaces.
Date Fri, 06 Jul 2012 18:36:35 GMT

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

Konstantin Shvachko commented on HBASE-6340:
--------------------------------------------

As mentioned in HADOOP-8558, the fix is pretty simple, just get rid of getDeclaringClass()
calls by passing the actual protocol into {{Invocation}} constructor. 
This should make coprocessors more flexible and yet even better tool for writing HBase applications.
Do people see any unforeseen problems coming out of such a change?
                
> HBase RPC does not allow protocol extension with common interfaces.
> -------------------------------------------------------------------
>
>                 Key: HBASE-6340
>                 URL: https://issues.apache.org/jira/browse/HBASE-6340
>             Project: HBase
>          Issue Type: Bug
>          Components: coprocessors, regionserver
>    Affects Versions: 0.92.0
>            Reporter: Konstantin Shvachko
>
> HBase RPC fails if MyProtocol extends an interface, which is not a VersionedProtocol
even if MyProtocol also directly extends VersionedProtocol. The reason is that rpc Invocation
uses Method.getDeclaringClass(), which returns the interface class rather than the class of
MyProtocol.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message