Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 08B9A10B24 for ; Fri, 28 Feb 2014 20:28:29 +0000 (UTC) Received: (qmail 62119 invoked by uid 500); 28 Feb 2014 20:28:23 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 61935 invoked by uid 500); 28 Feb 2014 20:28:21 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 61710 invoked by uid 99); 28 Feb 2014 20:28:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Feb 2014 20:28:20 +0000 Date: Fri, 28 Feb 2014 20:28:19 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-6782) setting TTL on some columns seems to expire whole row MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-6782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sylvain Lebresne updated CASSANDRA-6782: ---------------------------------------- Attachment: 6782.txt Ok, seems there is a relatively good agreement that this needs to change, so attaching trivial patch for that. > setting TTL on some columns seems to expire whole row > ----------------------------------------------------- > > Key: CASSANDRA-6782 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6782 > Project: Cassandra > Issue Type: Bug > Environment: java version "1.7.0_51" > cassandra from trunk: 9c4824d6c476 > Reporter: Russ Hatch > Fix For: 2.0.6 > > Attachments: 6782.txt > > > I create a table with 4 columns, set a ttl on 2 of the columns and when the TTL is up, the entire row disappears. > {noformat} > cqlsh:myks> CREATE TABLE paging_test ( > ... id int, > ... mytext text, > ... anothervalue text, > ... somevalue text, > ... PRIMARY KEY (id, mytext) > ... ); > cqlsh:myks> insert into paging_test (id, mytext, anothervalue, somevalue) values (1, 'foo', 'some', 'another'); > cqlsh:myks> select * from paging_test; > id | mytext | anothervalue | somevalue > ----+--------+--------------+----------- > 1 | foo | some | another > (1 rows) > cqlsh:myks> update paging_test using ttl 10 > ... set somevalue='one', anothervalue='two' > ... where id = 1 and mytext = 'foo'; > cqlsh:myks> select * from paging_test; > id | mytext | anothervalue | somevalue > ----+--------+--------------+----------- > 1 | foo | two | one > (1 rows) > cqlsh:myks> -- wait for it.... > cqlsh:myks> select * from paging_test; > (0 rows) > {noformat} -- This message was sent by Atlassian JIRA (v6.1.5#6160)