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 B96A711F5C for ; Thu, 28 Aug 2014 13:50:09 +0000 (UTC) Received: (qmail 39021 invoked by uid 500); 28 Aug 2014 13:50:09 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 38990 invoked by uid 500); 28 Aug 2014 13:50:09 -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 38937 invoked by uid 99); 28 Aug 2014 13:50:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2014 13:50:09 +0000 Date: Thu, 28 Aug 2014 13:50:09 +0000 (UTC) From: "Philip Thompson (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-7831) recreating a counter column after dropping it leaves in unusable state MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-7831?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 14113764#comment-14113764 ]=20 Philip Thompson commented on CASSANDRA-7831: -------------------------------------------- Dtest for this behavior committed at https://github.com/riptano/cassandra-d= test/commit/18de5d7dd248e7632fb85993b54e94bcab79bff7 . It is passing on 2.0= and 2.1 after Aleksey's commit. > recreating a counter column after dropping it leaves in unusable state > ---------------------------------------------------------------------- > > Key: CASSANDRA-7831 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7831 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Peter M=C3=A4del > Assignee: Aleksey Yeschenko > Labels: qa-resolved > Fix For: 2.0.11, 2.1.0 > > Attachments: 7831.txt > > > create table counter_bug (t int, c counter, primary key (t)); > update counter_bug set c =3D c +1 where t =3D 1; > select * from counter_bug ; > =20 > t | c > ---+--- > 1 | 1 > =20 > (1 rows) > =20 > alter table counter_bug drop c; > alter table counter_bug add c counter; > update counter_bug set c =3D c +1 where t =3D 1; > select * from counter_bug; > =20 > (0 rows) > update counter_bug set c =3D c +1 where t =3D 2; > select * from counter_bug; > =20 > (0 rows) -- This message was sent by Atlassian JIRA (v6.2#6252)