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 97BB2930D for ; Tue, 16 Dec 2014 11:48:13 +0000 (UTC) Received: (qmail 30042 invoked by uid 500); 16 Dec 2014 11:48:13 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 30005 invoked by uid 500); 16 Dec 2014 11:48:13 -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 29992 invoked by uid 99); 16 Dec 2014 11:48:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2014 11:48:13 +0000 Date: Tue, 16 Dec 2014 11:48:13 +0000 (UTC) From: "mlowicki (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-8491) Updating counter after previous removal doesn't work 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-8491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] mlowicki updated CASSANDRA-8491: -------------------------------- Environment: Cassandra 2.1.2 > Updating counter after previous removal doesn't work > ---------------------------------------------------- > > Key: CASSANDRA-8491 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8491 > Project: Cassandra > Issue Type: Bug > Environment: Cassandra 2.1.2 > Reporter: mlowicki > > {code} > cqlsh:sync> desc table user_quota; > CREATE TABLE sync.user_quota ( > user_id text PRIMARY KEY, > entities counter > ) WITH bloom_filter_fp_chance = 0.01 > AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}' > AND comment = '' > AND compaction = {'min_threshold': '4', 'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32'} > AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'} > AND dclocal_read_repair_chance = 0.1 > AND default_time_to_live = 0 > AND gc_grace_seconds = 864000 > AND max_index_interval = 2048 > AND memtable_flush_period_in_ms = 0 > AND min_index_interval = 128 > AND read_repair_chance = 0.0 > AND speculative_retry = '99.0PERCENTILE'; > cqlsh:sync> select * from user_quota where user_id = 'test'; > user_id | entities > ---------+---------- > (0 rows) > cqlsh:sync> update user_quota set entities = entities + 100 where user_id = 'test'; > cqlsh:sync> select * from user_quota where user_id = 'test'; > user_id | entities > ---------+---------- > test | 100 > (1 rows) > cqlsh:sync> update user_quota set entities = entities + 100 where user_id = 'test'; > cqlsh:sync> select * from user_quota where user_id = 'test'; > user_id | entities > ---------+---------- > test | 200 > (1 rows) > cqlsh:sync> delete from user_quota where user_id = 'test'; > cqlsh:sync> select * from user_quota where user_id = 'test'; > user_id | entities > ---------+---------- > (0 rows) > cqlsh:sync> update user_quota set entities = entities + 100 where user_id = 'test'; > cqlsh:sync> select * from user_quota where user_id = 'test'; > user_id | entities > ---------+---------- > (0 rows) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)