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 872EB68E5 for ; Tue, 19 Jul 2011 19:05:21 +0000 (UTC) Received: (qmail 97332 invoked by uid 500); 19 Jul 2011 19:05:20 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 97222 invoked by uid 500); 19 Jul 2011 19:05: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 97202 invoked by uid 99); 19 Jul 2011 19:05:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2011 19:05:19 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,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, 19 Jul 2011 19:05:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 034A744DF6 for ; Tue, 19 Jul 2011 19:04:58 +0000 (UTC) Date: Tue, 19 Jul 2011 19:04:58 +0000 (UTC) From: "Ryan Brush (JIRA)" To: issues@hbase.apache.org Message-ID: <306504557.4959.1311102298009.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1176478227.1548.1311021837373.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HBASE-4115) HBase shell assign and unassign unusable if region name includes binary-encoded data 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-4115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ryan Brush updated HBASE-4115: ------------------------------ Attachment: admin.patch Update original patch to use .to_java_bytes, consistently with other methods. Apologies for the lack of a unit test...it looks like this entire flow of the shell could use more unit tests but I can't jump into that right away. > HBase shell assign and unassign unusable if region name includes binary-encoded data > ------------------------------------------------------------------------------------ > > Key: HBASE-4115 > URL: https://issues.apache.org/jira/browse/HBASE-4115 > Project: HBase > Issue Type: Bug > Components: shell > Affects Versions: 0.90.2, 0.90.3 > Reporter: Ryan Brush > Priority: Minor > Attachments: admin.patch, admin.patch > > > When using the hbase shell assign and unassign commands, we should be able to copy region names from the hbck utility or the web page hosted by the HMaster process. But if these names have encoded binary data, they region name won't match and the command will fail. > This is easily fixed by using Bytes.toBytesBinary on the region name in these commands rather than the raw Bytes.ToBytes. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira