[ 
https://issues.apache.org/jira/browse/HBASE-4115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067643#comment-13067643
 ] 

Ryan Brush commented on HBASE-4115:
-----------------------------------

The UI doesn't escape the names, but it looks like other methods (like get) do 
invoke .to_java_bytes on such input strings.  Assign and unassign were using 
Bytes.toBinary for some reason. So to be more consistent a better fix for this 
patch would be to use .to_java_bytes over Bytes.toBytesBinary. 

I'll make sure this fixes the problem I saw and adjust the patch appropriately.

> 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
>
>
> 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

        

Reply via email to