You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Konstantin Shvachko (JIRA)" <ji...@apache.org> on 2012/08/09 00:43:21 UTC
[jira] [Updated] (HBASE-6340) HBase RPC does not allow protocol
extension with common interfaces.
[ https://issues.apache.org/jira/browse/HBASE-6340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konstantin Shvachko updated HBASE-6340:
---------------------------------------
Attachment: RPCInvocation.patch
Here is the patch. As I said I am just passing the protocol to the Invocation as {{declaringClass}}, instead of extracting it from the method as it is currently implemented.
Also provide a test case, which fails with current impl and passes with the new one.
> 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
> Assignee: Konstantin Shvachko
> Attachments: RPCInvocation.patch
>
>
> 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