cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yangqiju (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-7326) counter: update delete Command conflict
Date Fri, 30 May 2014 08:48:01 GMT
yangqiju created CASSANDRA-7326:
-----------------------------------

             Summary: 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)

Mime
View raw message