hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tianying Chang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-8044) split/flush/compact/major_compact from hbase shell does not work for region key with \x format
Date Thu, 14 Mar 2013 21:36:12 GMT

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

Tianying Chang commented on HBASE-8044:
---------------------------------------

>>It does not work for the case when the regionName contains non-printable char and
are converted to \x00\0xAD... on WebUI...

> Strange. Pretty sure it used to.
@Stack, in my case, it works if the data is not converted from the non-printable char. But
it does not work for non-printable bytes regionName. Does the double-quote's implementation
called the toBytesBinary() underlying? Otherwise, who called toBytesBinary() to convert the
output of toStringBinary()? Someone/somewher, toBytesBinary() has to be called. Am I missing
something here? 

BTW, I believe if we can provide the correct byte[] format to the shell command, the double-quote
will work. The question is I don't know how to retrieve the byte[] easily. 

>What if you scan ".META.' in shell?
It has the same output as WebUI. I verified it on our production cluster that has the non-printable
regionName. I also checked the code for scan/get in ruby code in hbase/table.rb, it also uses
toStringBinary(). That confirmed that scan .META. has the same format data as the WebUI. ["key
= org.apache.hadoop.hbase.util.Bytes::toStringBinary(row.getRow)"]

Any other idea for getting the byte[] output? 

Thanks


                
> split/flush/compact/major_compact from hbase shell does not work for region key with
\x format
> ----------------------------------------------------------------------------------------------
>
>                 Key: HBASE-8044
>                 URL: https://issues.apache.org/jira/browse/HBASE-8044
>             Project: HBase
>          Issue Type: Bug
>          Components: Admin
>    Affects Versions: 0.94.5
>            Reporter: Tianying Chang
>            Assignee: Tianying Chang
>             Fix For: 0.95.0, 0.98.0, 0.94.7
>
>         Attachments: 8044.patch, 8044-trunk.txt, 8044-trunk-v2.txt, 8044-v2.patch
>
>
> the conversion between bytes and string is incorrect

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

Mime
View raw message