[
https://issues.apache.org/jira/browse/CASSANDRA-7214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brandon Williams resolved CASSANDRA-7214.
-----------------------------------------
Resolution: Invalid
See http://wiki.apache.org/cassandra/Counters for technical limitations.
> 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)