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 44F2D200CAF for ; Thu, 22 Jun 2017 18:34:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 43C85160BF4; Thu, 22 Jun 2017 16:34: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 91615160BD3 for ; Thu, 22 Jun 2017 18:34:13 +0200 (CEST) Received: (qmail 57003 invoked by uid 500); 22 Jun 2017 16:34:12 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 56991 invoked by uid 99); 22 Jun 2017 16:34:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2017 16:34:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 331EAC349E for ; Thu, 22 Jun 2017 16:34:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.01 X-Spam-Level: X-Spam-Status: No, score=-100.01 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id oNkJrDso2V8k for ; Thu, 22 Jun 2017 16:34:11 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 687015FB43 for ; Thu, 22 Jun 2017 16:34: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 E13E7E0D76 for ; Thu, 22 Jun 2017 16:34:08 +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 8F380240C9 for ; Thu, 22 Jun 2017 16:34:07 +0000 (UTC) Date: Thu, 22 Jun 2017 16:34:07 +0000 (UTC) From: "Jeremy Hanna (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-10328) Inconsistent Schema Change Events Between Table and View MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 22 Jun 2017 16:34:14 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-10328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeremy Hanna updated CASSANDRA-10328: ------------------------------------- Component/s: Materialized Views > Inconsistent Schema Change Events Between Table and View > -------------------------------------------------------- > > Key: CASSANDRA-10328 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10328 > Project: Cassandra > Issue Type: Bug > Components: Materialized Views, Tools > Reporter: Adam Holmberg > Assignee: Stefania > > I'm seeing inconsistent event delivery when it comes to dropping materialized views (when compared to tables or indexes). > For example, create/drop/alter for a table: > {code} > cassandra@cqlsh:test> create TABLE t (k int PRIMARY KEY , v int); > > > cassandra@cqlsh:test> alter TABLE t add v1 int; > > > cassandra@cqlsh:test> drop TABLE t; > > > {code} > And for a view: > {code} > cassandra@cqlsh:test> create MATERIALIZED VIEW mv as select * from scores WHERE game IS NOT NULL AND score IS NOT NULL AND user IS NOT NULL AND year IS NOT NULL AND month IS NOT NULL AND day IS NOT NULL PRIMARY KEY (game, user, year, month, day, score) WITH CLUSTERING ORDER BY (score desc); > > > cassandra@cqlsh:test> alter materialized view mv with min_index_interval = 100; > > > cassandra@cqlsh:test> drop MATERIALIZED VIEW mv; > > {code} > The latter sequence is missing a table update event, meaning clients cannot tell that a view was dropped. > This is on a [branch in-progress|https://github.com/iamaleksey/cassandra/commits/9921-3.0] for CASSANDRA-9921 > As a side note, I also believe they keyspace update events are unnecessary in both scenarios. To my knowledge, drivers only use these events to refresh meta on the keyspace definition itself, not the entities it contains. Please let me know if this is worthy of discussion or a distinct ticket. -- 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