[ 
https://issues.apache.org/jira/browse/CASSANDRA-7326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aleksey Yeschenko resolved CASSANDRA-7326.
------------------------------------------

    Resolution: Not a Problem

This is the intended behavior. A deleted counter cannot be reused, because this 
operation cannot be implemented deterministically.

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

Reply via email to