You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Pete Laurina (JIRA)" <ji...@apache.org> on 2014/05/12 23:50:15 UTC

[jira] [Created] (CASSANDRA-7214) Delete of rowkey does not cascade delete to atomic counter columns

Pete Laurina created CASSANDRA-7214:
---------------------------------------

             Summary: Delete of rowkey does not cascade delete to atomic counter columns
                 Key: CASSANDRA-7214
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7214
             Project: Cassandra
          Issue Type: Bug
            Reporter: Pete Laurina
            Priority: Minor


If you have a column family of atomic counters and issue a delete command of a rowkey, then try to reuse that rowkey and column names, your original atomic counter is resurrected from the dead.

via: Cassandra CLI version 1.2.4

Example:

[default@Sandy] create column family test with comparator = 'UTF8Type'
	  and default_validation_class = 'CounterColumnType'
	  and key_validation_class = 'UTF8Type';
48ba553e-b411-308f-ae1d-7a5b7f379b0d
[default@Sandy] incr test['testkey']['testcolumn'] by 5;
Value incremented.
[default@Sandy] get test['testkey']['testcolumn'];
=> (counter=testcolumn, value=5)
Elapsed time: 377 msec(s).
[default@Sandy] del test['testkey'];
row removed.
Elapsed time: 2.26 msec(s).
[default@Sandy] get test['testkey']['testcolumn'];
Value was not found
Elapsed time: 2.86 msec(s).
[default@Sandy] get test['testkey'];
Returned 0 results.
Elapsed time: 3.24 msec(s).
[default@Sandy] incr test['testkey']['testcolumn'] by 5;
Value incremented.
[default@Sandy] get test['testkey']['testcolumn'];
=> (counter=testcolumn, value=10)
Elapsed time: 3.63 msec(s).
[default@Sandy] del test['testkey']['testcolumn'];
column removed.
Elapsed time: 2.9 msec(s).
[default@Sandy] get test['testkey']['testcolumn'];
Value was not found
Elapsed time: 3.56 msec(s).
[default@Sandy] get test['testkey'];
Returned 0 results.
Elapsed time: 3.11 msec(s).
[default@Sandy] incr test['testkey']['testcolumn'] by 5;
Value incremented.
[default@Sandy] get test['testkey']['testcolumn'];
=> (counter=testcolumn, value=5)
Elapsed time: 3.39 msec(s).



--
This message was sent by Atlassian JIRA
(v6.2#6252)