Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1A3DBD9EE for ; Tue, 14 Aug 2012 23:21:39 +0000 (UTC) Received: (qmail 4476 invoked by uid 500); 14 Aug 2012 23:21:38 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 4435 invoked by uid 500); 14 Aug 2012 23:21:38 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 4425 invoked by uid 99); 14 Aug 2012 23:21:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2012 23:21:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 50C742C5BE6 for ; Tue, 14 Aug 2012 23:21:38 +0000 (UTC) Date: Wed, 15 Aug 2012 10:21:38 +1100 (NCT) From: "Zhihong Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: <690715940.10421.1344986498331.JavaMail.jiratomcat@arcas> In-Reply-To: <1617814319.15181.1341597934651.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HBASE-6340) HBase RPC does not allow protocol extension with common interfaces. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-6340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434623#comment-13434623 ] Zhihong Ted Yu commented on HBASE-6340: --------------------------------------- WritableRpcEngine.java would go away through HBASE-6414 Please take a look at the patch in that JIRA and update your patch accordingly. Thanks > 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