Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4A741200CF7 for ; Tue, 19 Sep 2017 12:22:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 48CBB1609DD; Tue, 19 Sep 2017 10:22:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8E4251609DB for ; Tue, 19 Sep 2017 12:22:06 +0200 (CEST) Received: (qmail 34532 invoked by uid 500); 19 Sep 2017 10:22: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 34521 invoked by uid 99); 19 Sep 2017 10:22:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Sep 2017 10:22:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 10E501834A1 for ; Tue, 19 Sep 2017 10:22:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id JXliPfucqGkT for ; Tue, 19 Sep 2017 10:22:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5B59761103 for ; Tue, 19 Sep 2017 10:22:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id EAF15E0ECE for ; Tue, 19 Sep 2017 10:22:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5DF87244E4 for ; Tue, 19 Sep 2017 10:22:00 +0000 (UTC) Date: Tue, 19 Sep 2017 10:22:00 +0000 (UTC) From: "Aleksey Yeschenko (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-13880) Fix short read protection for tables with no clustering columns MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 19 Sep 2017 10:22:07 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13880?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16171476#comment-16171476 ]=20 Aleksey Yeschenko commented on CASSANDRA-13880: ----------------------------------------------- Thanks. CircleCI run for [3.0|https://circleci.com/gh/iamaleksey/cassandra/34] has = a bunch of annoying MV timeout issues again, and [dtests|https://builds.apa= che.org/view/A-D/view/Cassandra/job/Cassandra-devbranch-dtest/326/testRepor= t/] have those annoying git clone issues, again, but everything seems alrig= ht otherwise. Committed to 3.0 as [35e32f20ba8cba6cbfb1bee4252c0edd8684cdb1|https://githu= b.com/apache/cassandra/commit/35e32f20ba8cba6cbfb1bee4252c0edd8684cdb1] and= merged with 3.11 and trunk. Dtest committed as [163f82c2db0e86d4dd8f312b29= 1ccd094891b986|https://github.com/apache/cassandra-dtest/commit/163f82c2db0= e86d4dd8f312b291ccd094891b986]. > Fix short read protection for tables with no clustering columns > --------------------------------------------------------------- > > Key: CASSANDRA-13880 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1388= 0 > Project: Cassandra > Issue Type: Bug > Components: Coordination > Reporter: Aleksey Yeschenko > Assignee: Aleksey Yeschenko > Fix For: 3.0.15, 3.11.1 > > > CASSANDRA-12872 fixed counting replica rows, so that we do now fetch more= than one extra row if necessary. > Fixing the issue caused consistency_test.py:TestConsistency.test_13747 to= start failing, by exposing a bug in the way we handle empty clusterings. > When {{moreContents()}} asks for another row and {{lastClustering}} is {{= EMPTY}}, the response again (and again) contains the row with {{EMPTY}} clu= stering. > SRP assumes it=E2=80=99s a new row, counts it as one, gets confused and k= eeps asking for more, in a loop, again and again. > Arguably, a response to a read command with the following non-inclusive {= {ClusteringIndexFilter}}: > {code} > command.clusteringIndexFilter(partitionKey).forPaging(metadata.comparator= , Clustering.EMPTY, false); > {code} > ... should return nothing at all rather than a row with an empty clusteri= ng. > Also arguably, SRP should not even attempt to fetch more rows if {{lastCl= ustering =3D=3D Clustering.EMPTY}}. In a partition key only column > we shouldn=E2=80=99t expect any more rows. > This JIRA is to fix the latter issue on SRP side - to modify SRP logic to= short-circuit execution if {{lastClustering}} was an {{EMPTY}} one instead= of querying pointlessly for non-existent extra rows. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org