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 3076D200CF1 for ; Mon, 28 Aug 2017 09:35:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2ED28163F2E; Mon, 28 Aug 2017 07:35:08 +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 74D23163F18 for ; Mon, 28 Aug 2017 09:35:07 +0200 (CEST) Received: (qmail 51301 invoked by uid 500); 28 Aug 2017 07:35:06 -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 51290 invoked by uid 99); 28 Aug 2017 07:35:06 -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; Mon, 28 Aug 2017 07:35:06 +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 AD3F5C982E for ; Mon, 28 Aug 2017 07:35:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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-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 k_HO3scSCoxe for ; Mon, 28 Aug 2017 07:35:05 +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 9FE995F5FD for ; Mon, 28 Aug 2017 07:35:04 +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 16E63E065D for ; Mon, 28 Aug 2017 07:35:02 +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 BE94B2537F for ; Mon, 28 Aug 2017 07:35:01 +0000 (UTC) Date: Mon, 28 Aug 2017 07:35:01 +0000 (UTC) From: "Sylvain Lebresne (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: Mon, 28 Aug 2017 07:35:08 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16143479#comment-16143479 ] Sylvain Lebresne commented on CASSANDRA-13812: ---------------------------------------------- Ping [~jjirsa] and [~iamaleksey]. It seems using a fixed timestamp of 0 was intended by CASSANDRA-13441, and I didn't saw that at the time, but I'm not 100% of the reasoning. It feels like this basically makes it impossible for use to update any parameters on system distributed tables (worst, if we do update them, the new values may or may not be picked up depending on how the old and new value are resolved (since they will have the same timestamp), which makes for an bug that feels easy to go undetected). And in case where whatever new value we're set doesn't get picked up, this also mean the code in {{StorageService.maybeAddOrUpdateKeyspace}} would try to re-update the table on every start without success. I will note that example in the description is a bit debatable in the sense that the fact we actually allow dropping {{system_distributed}} is imo a bug in the first place. A bug we should fix and I created CASSANDRA-13813 for that. 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. Even more so because the restriction is kind of silent right now and could be easily overlook in future updates. > 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