Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7A76210EA7 for ; Fri, 27 Dec 2013 22:38:50 +0000 (UTC) Received: (qmail 35506 invoked by uid 500); 27 Dec 2013 22:38:50 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 35456 invoked by uid 500); 27 Dec 2013 22:38:50 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 35447 invoked by uid 99); 27 Dec 2013 22:38:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Dec 2013 22:38:50 +0000 Date: Fri, 27 Dec 2013 22:38:50 +0000 (UTC) From: "Gregory Ramsperger (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-6532) Deleting and re-adding counter causes null count value. 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/CASSANDRA-6532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13857807#comment-13857807 ] Gregory Ramsperger commented on CASSANDRA-6532: ----------------------------------------------- Minimally, it should throw an error if you're not going to fix it.... > Deleting and re-adding counter causes null count value. > ------------------------------------------------------- > > Key: CASSANDRA-6532 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6532 > Project: Cassandra > Issue Type: Improvement > Components: Core > Environment: cqlsh 4.1.0 | Cassandra 2.0.3 | CQL spec 3.1.1 | Thrift protocol 19.38.0 > Reporter: Gregory Ramsperger > Labels: counters > > After a specific counter has been deleted, recreating a new counter with the same key causes the value to be permanently null. > {noformat} > cqlsh:demo> create table DemoCounter ( pk text primary key, cnt counter ); > cqlsh:demo> update DemoCounter set cnt = cnt + 1 where pk = 'foo'; > cqlsh:demo> select * from DemoCounter; > pk | cnt > -----+----- > foo | 1 > (1 rows) > cqlsh:demo> delete from DemoCounter where pk = 'foo'; > cqlsh:demo> select * from DemoCounter; > (0 rows) > cqlsh:demo> update DemoCounter set cnt = cnt + 1 where pk = 'foo'; > cqlsh:demo> select * from DemoCounter; > pk | cnt > -----+------ > foo | null > (1 rows) > cqlsh:demo> > {noformat} -- This message was sent by Atlassian JIRA (v6.1.5#6160)