Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-6363

CAS not applied on rows containing an expired ttl column

    XMLWordPrintableJSON

Details

    • Normal

    Description

      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.

      Attachments

        Activity

          People

            stefania Stefania Alborghetti
            r_o_o_k MichaƂ Ziemski
            Stefania Alborghetti
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: