[ https://issues.apache.org/jira/browse/HBASE-5856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261229#comment-13261229 ]
binlijin commented on HBASE-5856: --------------------------------- @stack We can get the string(testsplit,\x00\x00\x00\x00\x00\x00\x00\x00,1335169851181.79d80fbc6c4f6cfc2cdca8a5310b7223. ) from the web (/table.jsp) or HRegionInfo.getRegionNameAsString(), if we pass the string to web or jruby shell or HBaseAdmin.split(String) will get TableNotFoundException. > 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 > public void split(final String tableNameOrRegionName) > throws IOException, InterruptedException { > split(Bytes.toBytes(tableNameOrRegionName)); // string -> byte > } > In HRegionInfo > this.regionNameStr = Bytes.toStringBinary(this.regionName); // byte -> > string > Should we use Bytes.toBytesBinary in HBaseAdmin ? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira