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 2A1C1200D06 for ; Mon, 25 Sep 2017 11:09:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 21E4F1609C4; Mon, 25 Sep 2017 09:09:14 +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 638141609BB for ; Mon, 25 Sep 2017 11:09:13 +0200 (CEST) Received: (qmail 7898 invoked by uid 500); 25 Sep 2017 09:09:12 -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 7887 invoked by uid 99); 25 Sep 2017 09:09:12 -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; Mon, 25 Sep 2017 09:09:12 +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 D542D18488A for ; Mon, 25 Sep 2017 09:09:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-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 KFUL9UOX_cYg for ; Mon, 25 Sep 2017 09:09:11 +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 DB16D5FDE2 for ; Mon, 25 Sep 2017 09:09:10 +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 8FF23E0B21 for ; Mon, 25 Sep 2017 09:09:01 +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 22A4324222 for ; Mon, 25 Sep 2017 09:09:00 +0000 (UTC) Date: Mon, 25 Sep 2017 09:09:00 +0000 (UTC) From: "ZhaoYang (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-13883) StrictLiveness for view row is not handled in AbstractRow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 25 Sep 2017 09:09:14 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16178755#comment-16178755 ] ZhaoYang commented on CASSANDRA-13883: -------------------------------------- Thanks for reviewing. > StrictLiveness for view row is not handled in AbstractRow > --------------------------------------------------------- > > Key: CASSANDRA-13883 > URL: https://issues.apache.org/jira/browse/CASSANDRA-13883 > Project: Cassandra > Issue Type: Bug > Components: Materialized Views > Reporter: ZhaoYang > Assignee: ZhaoYang > Fix For: 3.0.15, 3.11.1, 4.0 > > > In {{AbstractRow.hasLiveData(nowInSecond)}}, it doesn't handle {{strictLiveness}} introduced in CASSANDRA-11500. The {{DataLimits}} counts the expired view row as live data and then the expired view row is purged in {{Row.purge()}}. When query with limit, we will get less data. > {code:title=test to reproduce} > @Test > public void testRegularColumnTimestampUpdates() throws Throwable > { > createTable("CREATE TABLE %s (" + > "k int PRIMARY KEY, " + > "c int, " + > "val int)"); > execute("USE " + keyspace()); > executeNet(protocolVersion, "USE " + keyspace()); > createView("mv_rctstest", "CREATE MATERIALIZED VIEW %s AS SELECT * FROM %%s WHERE k IS NOT NULL AND c IS NOT NULL PRIMARY KEY (k,c)"); > updateView("UPDATE %s SET c = ?, val = ? WHERE k = ?", 0, 0, 0); > updateView("UPDATE %s SET val = ? WHERE k = ?", 1, 0); > updateView("UPDATE %s SET c = ? WHERE k = ?", 1, 0); > assertRows(execute("SELECT c, k, val FROM mv_rctstest"), row(1, 0, 1)); > updateView("TRUNCATE %s"); > updateView("UPDATE %s USING TIMESTAMP 1 SET c = ?, val = ? WHERE k = ?", 0, 0, 0); > updateView("UPDATE %s USING TIMESTAMP 3 SET c = ? WHERE k = ?", 1, 0); > updateView("UPDATE %s USING TIMESTAMP 2 SET val = ? WHERE k = ?", 1, 0); > updateView("UPDATE %s USING TIMESTAMP 4 SET c = ? WHERE k = ?", 2, 0); > updateView("UPDATE %s USING TIMESTAMP 3 SET val = ? WHERE k = ?", 2, 0); > // FIXME no rows return > assertRows(execute("SELECT c, k, val FROM mv_rctstest limit 1"), row(2, 0, 2)); > assertRows(execute("SELECT c, k, val FROM mv_rctstest"), row(2, 0, 2)); > } > {code} -- 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