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 2B35BD175 for ; Mon, 24 Jun 2013 19:54:21 +0000 (UTC) Received: (qmail 6972 invoked by uid 500); 24 Jun 2013 19:54:20 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 6943 invoked by uid 500); 24 Jun 2013 19:54:20 -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 6876 invoked by uid 99); 24 Jun 2013 19:54:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2013 19:54:20 +0000 Date: Mon, 24 Jun 2013 19:54:20 +0000 (UTC) From: "Lars George (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-8782) Thrift2 can not parse values when using framed transport 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-8782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13692307#comment-13692307 ] Lars George commented on HBASE-8782: ------------------------------------ bq. As for solution, my first solution to avoid copying the array was to modify HtableInterface to accept ByteBuffer as input and separately take care of other cases in checkAndPut() and checkAndDelete(). However, I can see that means adding to HTableInterface! I do not think you have to do that. getTable() is a function of HTablePool, not the HTableInterface. What you found there seems to exist for exactly the right reasons though, nice find indeed! Yes, please update the patch so that we can look at it in context. Good on you, keep hacking away on it. > Thrift2 can not parse values when using framed transport > -------------------------------------------------------- > > Key: HBASE-8782 > URL: https://issues.apache.org/jira/browse/HBASE-8782 > Project: HBase > Issue Type: Bug > Components: Thrift > Affects Versions: 0.95.1 > Reporter: Hamed Madani > Attachments: HBASE_8782.patch > > > ThriftHBaseServiceHandler.java use .array() on table names , and values (family , qualifier in checkandDelete , etc) which resulted in incorrect values with framed transport. Replacing .array() with getBytes() fixed this problem. I've attached the patch > EDIT: updated the patch to cover checkAndPut(), checkAndDelete() -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira