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 CE45D9EC5 for ; Tue, 24 Apr 2012 15:29:59 +0000 (UTC) Received: (qmail 95326 invoked by uid 500); 24 Apr 2012 15:29:59 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 95282 invoked by uid 500); 24 Apr 2012 15:29:59 -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 95273 invoked by uid 99); 24 Apr 2012 15:29:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2012 15:29:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2012 15:29:57 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 28D8240DD2E for ; Tue, 24 Apr 2012 15:29:36 +0000 (UTC) Date: Tue, 24 Apr 2012 15:29:36 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: <798510690.10060.1335281376171.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1466464129.4339.1335175294869.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5856) byte <-> String is not consistent between HBaseAdmin and HRegionInfo MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-5856?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1326= 0661#comment-13260661 ]=20 stack commented on HBASE-5856: ------------------------------ Help me understand Binlijin. This does not seem right to me but you are ob= viously on to something. The String that is being passed in here is coming= from the shell? Is jruby shell doing the escaping before it passes the St= ring to HBaseAdmin? Thanks. =20 > byte <-> String is not consistent between HBaseAdmin and HRegionInfo > -------------------------------------------------------------------- > > Key: HBASE-5856 > URL: https://issues.apache.org/jira/browse/HBASE-5856 > Project: HBase > Issue Type: Bug > Components: client > Affects Versions: 0.90.6, 0.92.1 > Reporter: binlijin > Attachments: HBASE-5856-0.92.patch > > > In HBaseAdmin=20 > public void split(final String tableNameOrRegionName) > throws IOException, InterruptedException { > split(Bytes.toBytes(tableNameOrRegionName)); // string -> byte=20 > } > In HRegionInfo > this.regionNameStr =3D Bytes.toStringBinary(this.regionName); // byte = -> string > Should we use Bytes.toBytesBinary in HBaseAdmin =EF=BC=9F -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira