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 C61AE1750F for ; Wed, 1 Apr 2015 15:52:03 +0000 (UTC) Received: (qmail 86159 invoked by uid 500); 1 Apr 2015 15:51:54 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 86128 invoked by uid 500); 1 Apr 2015 15:51:54 -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 86117 invoked by uid 99); 1 Apr 2015 15:51:54 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2015 15:51:54 +0000 Date: Wed, 1 Apr 2015 15:51:54 +0000 (UTC) From: "Roger Schildmeijer (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-9086) CAS precondition mismatch - row is still inserted 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-9086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14390853#comment-14390853 ] Roger Schildmeijer commented on CASSANDRA-9086: ----------------------------------------------- yes > CAS precondition mismatch - row is still inserted > ------------------------------------------------- > > Key: CASSANDRA-9086 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9086 > Project: Cassandra > Issue Type: Bug > Environment: Cassandra version 2.0.11 > 24 nodes in 4 datacenters (6 nodes per dc) > Reporter: Roger Schildmeijer > Priority: Critical > Fix For: 2.0.15 > > Attachments: conditional_insert_failure_cleaned.txt > > > Cassandra claims CAS precondition didn't match current values[1], but the row is still inserted. > We are having a quite simple cf schema: > {code:xml} > create table index ( > u text PRIMARY KEY, > abc set, > ) WITH > compaction={'class': 'LeveledCompactionStrategy'}; > {code} > CQL statement: > {code:xml} > INSERT INTO index(u, abc) VALUES(?, ?) IF NOT EXISTS > {code} > Sometimes, especially during some write load, Cassandra claims the conditional insert wasn't satisfied ([applied] false), but the row is still inserted. > The response from the conditional insert contains [applied]=false + the data we tried to insert. > A full CQL trace is attached. > [1] CAS precondition CAS precondition org.apache.cassandra.cql3.statements.CQL3CasConditions@1b2576ce does not match current values ColumnFamily(username_index -{deletedAt=-9223372036854775808, localDeletion=2147483647, ranges=[abc-abc:!, deletedAt=1427889576525999, localDeletion=1427889564]}- [:false:0@1427889576526000,abc:39f1a470ee694761a8197c0d0ada8e8f:false:0@1427889576526000,]) | 11:59:37.060 | /10.0.0.1 | 533702 -- This message was sent by Atlassian JIRA (v6.3.4#6332)