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 600971012E for ; Thu, 25 Jul 2013 18:17:55 +0000 (UTC) Received: (qmail 87290 invoked by uid 500); 25 Jul 2013 18:17:52 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 87159 invoked by uid 500); 25 Jul 2013 18:17:51 -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 86665 invoked by uid 99); 25 Jul 2013 18:17:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jul 2013 18:17:51 +0000 Date: Thu, 25 Jul 2013 18:17:50 +0000 (UTC) From: "Aleksey Yeschenko (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-5805) CQL 'set' returns incorrect value 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-5805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13719868#comment-13719868 ] Aleksey Yeschenko commented on CASSANDRA-5805: ---------------------------------------------- Maps and Lists are also affected, but I'm not certain that the issue is necessarily collection-related. > CQL 'set' returns incorrect value > --------------------------------- > > Key: CASSANDRA-5805 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5805 > Project: Cassandra > Issue Type: Bug > Affects Versions: 2.0 beta 2 > Reporter: Yuki Morishita > Priority: Critical > > CQL 'set' returns incorrect value after flush. > Create the following table: > {code} > CREATE KEYSPACE ks WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}; > USE ks; > CREATE TABLE cf ( k int PRIMARY KEY , s set ); > {code} > Insert data: > {code} > INSERT INTO cf (k, s) VALUES (1, {1}); > INSERT INTO cf (k, s) VALUES (1, {2}); > {code} > This should return: > {code} > cqlsh:ks> SELECT * FROM cf; > k | s > ---+-------- > 1 | {2} > {code} > and it does when no flush has happened. > But when I do flush after each insert, it starts returning: > {code} > cqlsh:ks> SELECT * FROM cf; > k | s > ---+-------- > 1 | {1, 2} > {code} > 'system.local' table flushes every time it inserts(updates) tokens, and this behavior is causing 'nodetool move' to act weirdly. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira