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 5434D18FCE for ; Tue, 7 Jul 2015 07:46:05 +0000 (UTC) Received: (qmail 43824 invoked by uid 500); 7 Jul 2015 07:46:05 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 43787 invoked by uid 500); 7 Jul 2015 07:46:05 -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 43772 invoked by uid 99); 7 Jul 2015 07:46:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2015 07:46:05 +0000 Date: Tue, 7 Jul 2015 07:46:05 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-9743) RowUpdateBuilder is broken for maps and lists 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-9743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sylvain Lebresne updated CASSANDRA-9743: ---------------------------------------- Attachment: 9743.txt {{PartitionUpdate}} was not properly merging/moving rows when sorting them post updates. Attaching patch (that include the unit test). Note that I wouldn't worry on the details of how this all work since CASSANDRA-9705 is going to greatly simplify all this (it is arguably a bit over-complicated currently). > RowUpdateBuilder is broken for maps and lists > --------------------------------------------- > > Key: CASSANDRA-9743 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9743 > Project: Cassandra > Issue Type: Bug > Reporter: Aleksey Yeschenko > Assignee: Sylvain Lebresne > Fix For: 3.0 beta 1 > > Attachments: 9743.txt > > > Something's not right with {{RowUpdateBuilder}} when adding map or list entries. It breaks {{SELECT}} queries that follow afterwards, inflating the resultset, and duplicating the rows multiple times. > It manifests when a table has more than one collection, and we update them both with more than one item. > Here is a gist with minimal reproducible code: https://gist.github.com/iamaleksey/b6e9476fece029067729 > The bug is currently blocking CASSANDRA-6717 code for migration from old schema keyspace to a new one. > P.S. I'm assuming that the bug is in {{RowUpdateBuilder}} because I couldn't reproduce in cqlsh. Could be that something's broken in the iterators, but trying to debug a cascade of them failed me. -- This message was sent by Atlassian JIRA (v6.3.4#6332)