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

HBaseAdmin.create doesn't create empty boundary keys

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.90.2
    • None
    • None
    • None

    Description

      In my ycsb stuff, I have code that looks like this:

          String startKey = "user1020000000";
          String endKey = "user940000000";
          admin.createTable(descriptor, startKey.getBytes(), endKey.getBytes(), regions);
      

      The result, however, is a table where the first and last region has defined first and last keys rather than empty keys.

      The patch I am about to attach fixes this, I think. I have some worries about other uses of Bytes.split, however, and would like some eyes on this patch. Perhaps we need a new dialect of split.

      Attachments

        1. HBASE-3778.patch
          0.8 kB
          Ted Dunning

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tdunning Ted Dunning
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: