You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "yangqiju (JIRA)" <ji...@apache.org> on 2014/06/01 11:14:01 UTC
[jira] [Commented] (CASSANDRA-7326) counter: update delete Command
conflict
[ https://issues.apache.org/jira/browse/CASSANDRA-7326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14014942#comment-14014942 ]
yangqiju commented on CASSANDRA-7326:
-------------------------------------
Thank you very much.
> counter: update delete Command conflict
> ---------------------------------------
>
> Key: CASSANDRA-7326
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7326
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Reporter: yangqiju
>
> ----------------------------------------------------
> CREATE TABLE expendbulk (
> key text,
> expend counter,
> PRIMARY KEY (key)
> );
> --------------------------------------------------------
> 2. insert data:
> cqlsh:lottery> UPDATE expendbulk SET expend = expend + 1 WHERE key = 'TJ';
> cqlsh:lottery> SELECT * FROM expendbulk ;
> key | expend
> -----+--------
> TJ | 1
> -----------------------------------------------------------------------------------------
> 3.delete data:
> cqlsh:lottery> DELETE from expendbulk where key = 'TJ';
> cqlsh:lottery> SELECT * FROM expendbulk ;
> (0 rows)
> ----------------------------------------------------------------------------------
> 4.insert data:
> cqlsh:lottery> UPDATE expendbulk SET expend = expend + 1 WHERE key = 'TJ';
> cqlsh:lottery> SELECT * FROM expendbulk ;
> (0 rows)
> ----------------------------------------------------------------------------------------
> After deleting the data can not be inserted.
--
This message was sent by Atlassian JIRA
(v6.2#6252)