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

HbaseAdmin.createTable cannot handle creating three regions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.94.5
    • Fix Version/s: 0.98.0, 0.94.7, 0.95.0
    • Component/s: Admin
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      createTable(HTableDescriptor desc, byte [] startKey, byte [] endKey, int numRegions) (line #370) dictates that you must specify a minimum of three regions, however is not able to handle being fed a value three. This is a result of line #379 where it attempts to create the key splits, and calls Bytes.Split with a value of 0 for the third parameter. createTable should instead just create a byte[][] with the startKey and endKey in this scenario.

        Attachments

        1. HBASE-8170_94.patch
          4 kB
          Anoop Sam John
        2. HBASE-8170-v0-trunk.patch
          0.8 kB
          Jean-Marc Spaggiari
        3. HBASE-8170-v1-trunk.patch
          4 kB
          Jean-Marc Spaggiari
        4. HBASE-8170-v2-trunk.patch
          4 kB
          Jean-Marc Spaggiari

          Activity

            People

            • Assignee:
              jmspaggi Jean-Marc Spaggiari
              Reporter:
              skoviak Edward C. Skoviak
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: