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 3B0CD200498 for ; Tue, 29 Aug 2017 12:46:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 396321665FF; Tue, 29 Aug 2017 10:46:12 +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 7ED041665F9 for ; Tue, 29 Aug 2017 12:46:11 +0200 (CEST) Received: (qmail 56797 invoked by uid 500); 29 Aug 2017 10:46:08 -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 56786 invoked by uid 99); 29 Aug 2017 10:46:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Aug 2017 10:46:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 0CC891A4A24 for ; Tue, 29 Aug 2017 10:46:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, 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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id zIKnNcJzd26L for ; Tue, 29 Aug 2017 10:46:07 +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 0B10161126 for ; Tue, 29 Aug 2017 10:46:07 +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 82005E0EC6 for ; Tue, 29 Aug 2017 10:46:05 +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 3D25024163 for ; Tue, 29 Aug 2017 10:46:03 +0000 (UTC) Date: Tue, 29 Aug 2017 10:46:03 +0000 (UTC) From: "Aleksey Yeschenko (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-13812) Missing system keyspace tables are not created MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 29 Aug 2017 10:46:12 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16145097#comment-16145097 ] Aleksey Yeschenko commented on CASSANDRA-13812: ----------------------------------------------- [~slebresne] The purpose of hardcoding a minimal timestamp value there is to avoid mismatches from automated creation, but still allow custom updates (to keyspace RF for example). When we do update them in Core, we'd bump the timestamp too so that the new default would override the old default, but still not affect the overrides by the user - if any. FWIW we've been doing it like this since forever, not just CASSANDRA-13441, just not consistently everywhere. If I recall correctly, so does DSE. Now, this may or may not work as intended, but that was the intention. As for dropping those tables - no, it should absolutely not be allowed. bq. But as said above, even outside that particular case, CASSANDRA-13441 means (unless I'm missing something) that we cannot ever do any update to a system_distributed table (we can add stuffs, but we can't update) and that doesn't feel ideal to me. It's already been the case for tables themselves before 13441, I think. Just not for KS metadata. So far we've been lucky to not require any incompatible changes. Overall, I think we should not allow user modifications to our distributed system tables (auth, tracing, system_distributed). So long as that is true, we can hardcode a timestamp as a generation, and bump it every time we make a change. But we should allow altering the keyspace itself by the user - at the very least to allow changing RF. I think it's still fine to hard code a timestamp there - user's changes will always win, and for keyspaces this is what we want - given that the only two params we have on keyspaces are RF and durable_writes. > Missing system keyspace tables are not created > ---------------------------------------------- > > Key: CASSANDRA-13812 > URL: https://issues.apache.org/jira/browse/CASSANDRA-13812 > Project: Cassandra > Issue Type: Bug > Components: Distributed Metadata > Reporter: ZhaoYang > > Auth/Trace/Distributed Keyspaces or Tables dropped are not created on startup although a log message {{MigrationManager.java:220 - Create new table: TableMetadata...}} appears. > Steps to reproduce: > # Start node > # {{DROP TABLE system_distributed.view_build_status;}} > # {{DROP TABLE system_distributed.repair_history;}} > # Stop node > # Start node > # Tables are *not* created, but log messages appear > Cause: > System's keyspaces or tables are created with timestamp 0 in CASSANDRA-13441 -- 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