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 EBBC110656 for ; Sat, 2 Nov 2013 11:34:26 +0000 (UTC) Received: (qmail 37070 invoked by uid 500); 2 Nov 2013 11:34:26 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 37015 invoked by uid 500); 2 Nov 2013 11:34:19 -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 37007 invoked by uid 99); 2 Nov 2013 11:34:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Nov 2013 11:34:17 +0000 Date: Sat, 2 Nov 2013 11:34:17 +0000 (UTC) From: "Vladimir Kuptsov (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-6291) Unexpected update result in batch MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Vladimir Kuptsov created CASSANDRA-6291: ------------------------------------------- Summary: Unexpected update result in batch Key: CASSANDRA-6291 URL: https://issues.apache.org/jira/browse/CASSANDRA-6291 Project: Cassandra Issue Type: Bug Environment: Cassandra 1.2.11 java version "1.6.0_37" Java(TM) SE Runtime Environment (build 1.6.0_37-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01, mixed mode) Ubuntu 12.04 Reporter: Vladimir Kuptsov I tried to execute the following script through the cqlsh console: CREATE KEYSPACE testspace WITH replication = {'class':'SimpleStrategy', 'replication_factor':1}; USE testspace; CREATE TABLE test ( user_id bigint, user_data varchar, deleted boolean, PRIMARY KEY (user_id) ); BEGIN BATCH UPDATE test SET deleted=true WHERE user_id=1; UPDATE test SET deleted=false, user_data='data' WHERE user_id=1; APPLY BATCH; After that I tried to fetch data: cqlsh:testspace> SELECT * FROM test; user_id | deleted | user_data ---------+---------+----------- 1 | True | data As you can see, I've got "true" in the "deleted" column, but the last statement in batch is "UPDATE test SET deleted=false, user_data='data' WHERE user_id=1;" Moreover the statements order in the batch doesn't influence on the result. -- This message was sent by Atlassian JIRA (v6.1#6144)