From issues-return-102247-apmail-hbase-issues-archive=hbase.apache.org@hbase.apache.org Sun Jun 23 02:41:21 2013 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 A84C710759 for ; Sun, 23 Jun 2013 02:41:21 +0000 (UTC) Received: (qmail 80341 invoked by uid 500); 23 Jun 2013 02:41:20 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 80048 invoked by uid 500); 23 Jun 2013 02:41:20 -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 80032 invoked by uid 99); 23 Jun 2013 02:41:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Jun 2013 02:41:20 +0000 Date: Sun, 23 Jun 2013 02:41:20 +0000 (UTC) From: "Demai Ni (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-8780) a column Family can have VERSIONS less than zero 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-8780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13691327#comment-13691327 ] Demai Ni commented on HBASE-8780: --------------------------------- Anoop, many thanks for reviewing. I am currently out of office, and don't have access to build a new patch. I will get to it a bit later. > a column Family can have VERSIONS less than zero > ------------------------------------------------- > > Key: HBASE-8780 > URL: https://issues.apache.org/jira/browse/HBASE-8780 > Project: HBase > Issue Type: Bug > Components: Client > Affects Versions: 0.94.8 > Reporter: Demai Ni > Assignee: Demai Ni > Priority: Trivial > Attachments: HBASE-8780-0.94.8-v0.patch, HBASE-8780-test.txt > > > User can create/alter a columnfam and set its VERSION(aka maxVERSIONS) to a negative or zero value. Although there is a checking in HColumnDesciptor#construtor, hbase shell command will invoke the setter(setMaxVersions and setMinVersions) directly, hence by pass the checking. For example: > {code:title=set VERSIONS = -1} > hbase(main):016:0> create 't5_dn',{NAME=>'cf1',VERSIONS=>-1} > 0 row(s) in 1.0420 seconds > hbase(main):017:0> put 't5_dn','row1','cf1:q1','row1cf1_v1' > 0 row(s) in 0.0700 seconds > hbase(main):018:0> scan 't5_dn' > ROW COLUMN+CELL > 0 row(s) in 0.0090 seconds > hbase(main):019:0> describe 't5_dn' > DESCRIPTION ENABLED > 't5_dn', {NAME => 'cf1', REPLICATION_SCOPE => '0', true > KEEP_DELETED_CELLS => 'false', COMPRESSION => 'NONE > ', ENCODE_ON_DISK => 'true', BLOCKCACHE => 'true', > MIN_VERSIONS => '0', DATA_BLOCK_ENCODING => 'NONE', > IN_MEMORY => 'false', BLOOMFILTER => 'NONE', TTL = > > '2147483647', VERSIONS => '-1', BLOCKSIZE => '655 > 36'} > 1 row(s) in 0.0410 seconds > {code} > above example shows VERSIONS => '-1', and put/scan doesn't keep the data -- 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