You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Jonathan Hsieh (JIRA)" <ji...@apache.org> on 2011/08/03 23:45:27 UTC

[jira] [Commented] (HBASE-4160) HBase shell move and online may be unusable if region name or server includes binary-encoded data

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

Jonathan Hsieh commented on HBASE-4160:
---------------------------------------

HBASE-4115 solves the case when signed negative hex bytes are input.  They seem to be processed differently with the two conversion functions.  'online' and 'move' will suffer the same problems.

Here's an example command at shell, and  byte array received by HMaster.assign(....)

before patch: assign "\xff\xfe" [-17, -65, -67, -17, -65, -67]
after patch: assign "\xff\xfe" [-1, -2]

before patch: assign "\x7f\x80" [127, -17, -65, -67]
after patch: assign "\x7f\x80" [127, -128]

This might be an encoding issue with o.a.h.hbase.utils.Bytes.toBytes.  

> HBase shell move and online may be unusable if region name or server includes binary-encoded data
> -------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4160
>                 URL: https://issues.apache.org/jira/browse/HBASE-4160
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Jonathan Hsieh
>            Priority: Minor
>
> Similar to HBASE-4115, this entails a conversion of org.apache.hadoop.hbase.utils.Bytes.toBytes to a to_java_bytes call in the 'move' and 'online' call.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira