You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Aleksey Yeschenko (JIRA)" <ji...@apache.org> on 2013/11/16 15:47:22 UTC
[jira] [Commented] (CASSANDRA-6363) CAS not applied on rows
containing an expired ttl column
[ https://issues.apache.org/jira/browse/CASSANDRA-6363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13824487#comment-13824487 ]
Aleksey Yeschenko commented on CASSANDRA-6363:
----------------------------------------------
You are missing statements in your description, and as a result it doesn't make a lot of sense (is it one partition or two? why different ids then?)
> CAS not applied on rows containing an expired ttl column
> --------------------------------------------------------
>
> Key: CASSANDRA-6363
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6363
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Environment: Linux/x64 2.0.2 4-node cluster
> Reporter: MichaĆ Ziemski
>
> CREATE TABLE session (
> id text,
> usr text,
> valid int,
> PRIMARY KEY (id)
> );
> insert into session (id, usr) values ('abc', 'abc');
> update session using ttl 1 set valid = 1 where id = 'abc';
> (wait 1 sec)
> And
> delete from session where id = 'DSYUCTCLSOEKVLAQWNWYLVQMEQGGXD' if usr ='demo';
> Yields:
> [applied] | usr
> -----------+-----
> False | abc
> Rather than applying the delete.
> Executing:
> update session set valid = null where id = 'abc';
> and again
> delete from session where id = 'DSYUCTCLSOEKVLAQWNWYLVQMEQGGXD' if usr ='demo';
> Positively deletes the row.
--
This message was sent by Atlassian JIRA
(v6.1#6144)