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 486CA9055 for ; Fri, 16 Mar 2012 18:44:04 +0000 (UTC) Received: (qmail 33556 invoked by uid 500); 16 Mar 2012 18:44:02 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 33489 invoked by uid 500); 16 Mar 2012 18:44:02 -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 33110 invoked by uid 99); 16 Mar 2012 18:44:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2012 18:44:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2012 18:43:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4C03A23829 for ; Fri, 16 Mar 2012 18:43:38 +0000 (UTC) Date: Fri, 16 Mar 2012 18:43:38 +0000 (UTC) From: "Lars Hofhansl (Updated) (JIRA)" To: issues@hbase.apache.org Message-ID: <1839268615.25877.1331923418312.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1181238513.14511.1331750319897.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HBASE-5581) Creating a table with invalid syntax does not give an error message when it fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-5581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lars Hofhansl updated HBASE-5581: --------------------------------- Fix Version/s: 0.96.0 0.94.0 Small patch, let's do that in 0.94 too. > Creating a table with invalid syntax does not give an error message when it fails > --------------------------------------------------------------------------------- > > Key: HBASE-5581 > URL: https://issues.apache.org/jira/browse/HBASE-5581 > Project: HBase > Issue Type: Bug > Components: shell > Reporter: Binu John > Priority: Minor > Fix For: 0.94.0, 0.96.0 > > Attachments: D2343.1.patch > > > Creating a table with invalid syntax does not give an error message when it fails. In this case, it doesn't actually create the CF requested, but doesn't give any indication to the user that it failed. > create 'test', {NAME => 'test', VERSIONS => 1, BLOCKCACHE => true, NUMREGIONS => 20, SPLITALGO => "HexStringSplit", COMPRESSION => 'LZO', BLOOMFILTER => 'ROW'} > 0 row(s) in 3.0930 seconds > hbase(main):002:0> describe 'test' > DESCRIPTION ENABLED > {NAME => 'test', FAMILIES => []} true > 1 row(s) in 0.1430 seconds > ---- > Putting {NUMREGIONS => 20, SPLITALGO => "HexStringSplit"} into a separate stanza works fine, so the feature is fine. > create 'test', {NAME => 'test', VERSIONS => 1, BLOCKCACHE => true, COMPRESSION => 'LZO', BLOOMFILTER => 'ROW'}, {NUMREGIONS => 20, SPLITALGO => "HexStringSplit"} > 0 row(s) in 2.7860 seconds > hbase(main):002:0> describe 'test' > DESCRIPTION ENABLED > {NAME => 'test', FAMILIES => [{NAME => 'test', DATA_BLOCK_ENCODING => 'NONE', true > BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', COMPRESSION => 'LZO', VERSIONS > => '1', TTL => '2147483647', BLOCKSIZE => '65536', BLOOMFILTER_ERRORRATE => ' > 0.01', ENCODE_ON_DISK => 'true', IN_MEMORY => 'false', BLOCKCACHE => 'true'}]} > ---- > We should throw an error if we can't create the CF so it's clear to the user. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira