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 92B71183DE for ; Mon, 26 Oct 2015 10:20:29 +0000 (UTC) Received: (qmail 94494 invoked by uid 500); 26 Oct 2015 10:20:27 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 94455 invoked by uid 500); 26 Oct 2015 10:20:27 -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 94428 invoked by uid 99); 26 Oct 2015 10:20:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Oct 2015 10:20:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B46E12C1F56 for ; Mon, 26 Oct 2015 10:20:27 +0000 (UTC) Date: Mon, 26 Oct 2015 10:20:27 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-10572) SinglePartitionNamesCommand::canRemoveRow omits counter cells it shouldn't MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-10572?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D14973983#comment-14973983 ]=20 Sylvain Lebresne commented on CASSANDRA-10572: ---------------------------------------------- I've pushed a patch [here|https://github.com/pcmanus/cassandra/commits/1057= 2]. A very trivial fix for this would be to exclude counters like we exclude co= llections in {{SinglePartitionNamesCommand::canRemoveRow}}. However, the re= ality is that it's particularly judicious to use the timestamp-ordered path= for either of those (collections or counters), since we'd be guaranteed to= read all sstable anyway and so reading sstable sequentially (materializing= everything in memory) is not the best strategy. So the best strategy is pr= obably to have counters and collections use the non timestamp ordered path.= Doing so however kind of obviate the reason for splitting {{SinglePartitio= nReadCommand}} in 2 subclass (names and slice comands), so the patch remove= that. Basically, it pulls the 2 possible path (timestamp-orderer and all-s= stables-simultaneously) in {{SinglePartitionReadCommand}} and pick the time= stamp-ordered one only for names query without either counters or collectio= ns. As such, the patch is bigger that one would expect, but that's mostly b= ecause it moves some code around and update the code accordingly. > SinglePartitionNamesCommand::canRemoveRow omits counter cells it shouldn'= t > -------------------------------------------------------------------------= - > > Key: CASSANDRA-10572 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1057= 2 > Project: Cassandra > Issue Type: Bug > Reporter: Aleksey Yeschenko > Assignee: Sylvain Lebresne > Fix For: 3.0.0 > > > Like with collections, we can never be sure we've exhausted all the sstab= les when reducing the filter. The sstables can contain legacy local shards = that need to be summed up. Unless we look into the content of the cells (?)= , or until we get rid of the pre-2.1 values, we must include all the sstabl= es in the read (so long as clusterings overlap). > This was not an issue with 2.1/2.2 as we've forced {{collectAllData}} alw= ays on that path, but now we don't, and {{SinglePartitionNamesCommand}} sho= uld handle the case. -- This message was sent by Atlassian JIRA (v6.3.4#6332)