Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C6C0EF461 for ; Thu, 21 Mar 2013 23:43:16 +0000 (UTC) Received: (qmail 95980 invoked by uid 500); 21 Mar 2013 23:43:16 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 95933 invoked by uid 500); 21 Mar 2013 23:43:16 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 95923 invoked by uid 99); 21 Mar 2013 23:43:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Mar 2013 23:43:16 +0000 Date: Thu, 21 Mar 2013 23:43:16 +0000 (UTC) From: "Jean-Marc Spaggiari (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-8170) HbaseAdmin.createTable cannot handle creating three regions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-8170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Marc Spaggiari updated HBASE-8170: --------------------------------------- Attachment: (was: HBASE-8170-v1-trunk.patch) > HbaseAdmin.createTable cannot handle creating three regions > ----------------------------------------------------------- > > Key: HBASE-8170 > URL: https://issues.apache.org/jira/browse/HBASE-8170 > Project: HBase > Issue Type: Bug > Components: Admin > Affects Versions: 0.94.5 > Reporter: Edward C. Skoviak > Assignee: Jean-Marc Spaggiari > Priority: Minor > Attachments: HBASE-8170-v0-trunk.patch, HBASE-8170-v1-trunk.patch > > > 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira