[
https://issues.apache.org/jira/browse/HBASE-1363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12717802#action_12717802
]
Lars George commented on HBASE-1363:
------------------------------------
This seems to be different. I used the PerformanceTest class and ran it once as
is. That gave me a few regions with readable region names. Then I changed the
class as per the diff Stack posted above and ran it again to get the same
amount of regions with binary keys. This now looks like this:
{code}
Name Region Server Encoded Name Start Key End Key
TestTable,,1244575397228 192.168.2.103:63745 705537570
\x00\x00\x00\x00\x02\x00\x03\x05\x02\x00
TestTable,\x00\x00\x00\x00\x02\x00\x03\x05\x02\x00,1244575618625
192.168.2.103:63745 388313306
\x00\x00\x00\x00\x02\x00\x03\x05\x02\x00
\x00\x00\x00\x00\x07\x00\x01\x06\x09\x06
TestTable,\x00\x00\x00\x00\x07\x00\x01\x06\x09\x06,1244575618625
192.168.2.103:63745 1477537179
\x00\x00\x00\x00\x07\x00\x01\x06\x09\x06 0000087168
TestTable,0000087168,1244572708645 192.168.2.103:63745 1372028794
0000087168 0000291328
TestTable,0000291328,1244572849139 192.168.2.103:63745 815696707
0000291328 0000641152
TestTable,0000641152,1244572885656 192.168.2.103:63745 1160636109
0000641152 0000844800
TestTable,0000844800,1244572885656 192.168.2.103:63745 85480166
0000844800
{code}
So this uses the Bytes method to create the \xNN representation. Running a scan
in the shell I get:
{code}
TestTable,,1244575397228 column=info:server, timestamp=1244575409140,
value=192.168.2.103:63745
TestTable,,1244575397228 column=info:serverstartcode,
timestamp=1244575409140, value=1244555657619
TestTable,\000\000\000\000\ column=historian:assignment,
timestamp=1244575406127, value=Region assigned to se
002\000\003\005\002\000,124 rver 192.168.2.103,63745,1244555657619
4575397228
TestTable,\000\000\000\000\ column=historian:open, timestamp=1244575409158,
value=Region opened on server : 1
002\000\003\005\002\000,124 92.168.2.103
4575397228
{code}
This has a different encoding. This is because it prints the byte[] array as is
and relies on the String.from_java_bytes JRuby method. I will now try to feed
these back in.
> Can't use 'close region' when keys are binary
> ---------------------------------------------
>
> Key: HBASE-1363
> URL: https://issues.apache.org/jira/browse/HBASE-1363
> Project: Hadoop HBase
> Issue Type: Sub-task
> Affects Versions: 0.20.0
> Reporter: ryan rawson
> Fix For: 0.20.0
>
>
> maybe we should allow you to use an encoded name to close a region, or use
> binary escaping.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.