Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-8865

HBase shell split command acts incorrectly with hex split keys.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 0.94.8
    • None
    • shell, Usability
    • None
    • Linux

    Description

      When I tried to do a manual region split from HBase shell, I found that split command acts incorrectly with hex split keys.

      Here is an example.

      I execute hbase(main):003:0> split 'tsdb', "\x00\x00\xC3" .

      While I expect it to split at the 3-byte key "\x00\x00\xC3" , it actually split at a 5-byte key "\x00\x00\xEF\xBF\xBD".

      I test with more split keys and find some patterns:

      • If the all bytes in the split key represented in hexadecimal are between "\x00" and "\x7F" , it works as expected and split at exactly the key specified.
      • If there are any bytes between "\x80" and "xFF", it works incorrectly. No matter the byte is, it is interpreted as "\xEF\xBF\xBD". Here is another example. Specifying split key "\x00\xA0\x00\xB0" actually splits at "\x00\xEF\xBF\xBD\x00\xEF\xBF\xBD".

      I'm running Hbase 0.94.8, r1485407, both server-side and client-side.

      Attachments

        1. 8865.txt
          0.7 kB
          Ted Yu

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dinghaifeng Ding Haifeng
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: