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 CE29D10CB1 for ; Thu, 6 Mar 2014 11:02:55 +0000 (UTC) Received: (qmail 68677 invoked by uid 500); 6 Mar 2014 11:02:52 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 68414 invoked by uid 500); 6 Mar 2014 11:02:47 -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 68109 invoked by uid 99); 6 Mar 2014 11:02:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 11:02:46 +0000 Date: Thu, 6 Mar 2014 11:02:46 +0000 (UTC) From: "Sam Tunnicliffe (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-6801) INSERT with IF NOT EXISTS fails when row is an expired ttl 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-6801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13922308#comment-13922308 ] Sam Tunnicliffe commented on CASSANDRA-6801: -------------------------------------------- I was able to reproduce this on a single node using the schema detailed above (but with SimpleStategy). Flush is also unnecessary, the problem manifests without it. The additional commit added for CASSANDRA-6623 (5ef53e6f7) fixes this. > INSERT with IF NOT EXISTS fails when row is an expired ttl > ---------------------------------------------------------- > > Key: CASSANDRA-6801 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6801 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Adam Hattrell > > I ran this on a 2 DC cluster with 3 nodes each. > CREATE KEYSPACE test WITH replication = { > 'class': 'NetworkTopologyStrategy', > 'DC1': '3', > 'DC2': '3' > }; > CREATE TABLE clusterlock ( > name text, > hostname text, > lockid text, > PRIMARY KEY (name) > ) ; > Then add some data and flush it to ensure the sstables exist (didn't reproduce in memtables for some reason). > Then > insert into clusterlock (name, lockid, hostname) values ( 'adam', 'tt', '111') IF NOT EXISTS USING TTL 5; > Wait for ttl to be reached then try again: > insert into clusterlock (name, lockid, hostname) values ( 'adam', 'tt', '111') IF NOT EXISTS USING TTL 5; > > [applied] > ----------- > False > select * shows no rows in table. -- This message was sent by Atlassian JIRA (v6.2#6252)