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 E4AB9200CA8 for ; Wed, 31 May 2017 15:46:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E38C8160BBA; Wed, 31 May 2017 13:46:09 +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 21F33160BCB for ; Wed, 31 May 2017 15:46:08 +0200 (CEST) Received: (qmail 14364 invoked by uid 500); 31 May 2017 13:46:08 -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 14350 invoked by uid 99); 31 May 2017 13:46:08 -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; Wed, 31 May 2017 13:46:08 +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 CEBD3CD2E8 for ; Wed, 31 May 2017 13:46:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -98.702 X-Spam-Level: X-Spam-Status: No, score=-98.702 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, 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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id p_CEBw1c0Ne1 for ; Wed, 31 May 2017 13: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 14D0261048 for ; Wed, 31 May 2017 13:46:06 +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 5FDE9E0DD9 for ; Wed, 31 May 2017 13: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 9CFE12408A for ; Wed, 31 May 2017 13:46:04 +0000 (UTC) Date: Wed, 31 May 2017 13:46:04 +0000 (UTC) From: "Aleksey Yeschenko (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CASSANDRA-13559) Schema version id mismatch while upgrading to 3.0.13 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 31 May 2017 13:46:10 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16031170#comment-16031170 ] Aleksey Yeschenko edited comment on CASSANDRA-13559 at 5/31/17 1:45 PM: ------------------------------------------------------------------------ bq. How does changing the schema version cause any of those? It can't and it doesn't. Those should be separate JIRA tickets, if valid at all. This patch is only addressing the difference in digest calculation, which is objectively an issue and has been reproduced. was (Author: iamaleksey): bq. How does changing the schema version cause any of those? It can't and it doesn't. Those should be separate JIRA tickets, if valid at all. This ticket is only addressing the difference in digest calculation. > Schema version id mismatch while upgrading to 3.0.13 > ---------------------------------------------------- > > Key: CASSANDRA-13559 > URL: https://issues.apache.org/jira/browse/CASSANDRA-13559 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Jay Zhuang > Assignee: Stefania > Priority: Blocker > > As the order of SchemaKeyspace is changed ([6991556 | https://github.com/apache/cassandra/commit/6991556e431a51575744248a4c484270c4f918c9], CASSANDRA-12213), the result of function [{{calculateSchemaDigest}}|https://github.com/apache/cassandra/blob/cassandra-3.0/src/java/org/apache/cassandra/schema/SchemaKeyspace.java#L311] is also changed for the same schema. Which causes schema mismatch while upgrading 3.0.x -> 3.0.13. > It could cause cassandra fail to start because Unknown CF exception. And streaming will fail: > {noformat} > ERROR [main] 2017-05-26 18:58:57,572 CassandraDaemon.java:709 - Exception encountered during startup > java.lang.IllegalArgumentException: Unknown CF 83c8eae0-3a65-11e7-9a27-e17fd11571e3 > {noformat} > {noformat} > WARN [MessagingService-Incoming-/IP] 2017-05-26 19:27:11,523 IncomingTcpConnection.java:101 - UnknownColumnFamilyException reading from socket; closing > org.apache.cassandra.db.UnknownColumnFamilyException: Couldn't find table for cfId 922b7940-3a65-11e7-adf3-a3ff55d9bcf1. If a table was just created, this is likely due to the schema not being fully propagated. Please wait for schema agreement on table creation. > {noformat} > Restart the new node will cause: > {noformat} > Exception (java.lang.NoSuchFieldError) encountered during startup: ALL > java.lang.NoSuchFieldError: ALL > at org.apache.cassandra.service.ClientState.(ClientState.java:67) > at org.apache.cassandra.cql3.QueryProcessor$InternalStateInstance.(QueryProcessor.java:155) > at org.apache.cassandra.cql3.QueryProcessor$InternalStateInstance.(QueryProcessor.java:149) > at org.apache.cassandra.cql3.QueryProcessor.internalQueryState(QueryProcessor.java:163) > at org.apache.cassandra.cql3.QueryProcessor.prepareInternal(QueryProcessor.java:286) > at org.apache.cassandra.cql3.QueryProcessor.executeInternal(QueryProcessor.java:294) > at org.apache.cassandra.db.SystemKeyspace.checkHealth(SystemKeyspace.java:900) > at org.apache.cassandra.service.StartupChecks$9.execute(StartupChecks.java:354) > at org.apache.cassandra.service.StartupChecks.verify(StartupChecks.java:110) > at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:179) > at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:569) > at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:697) > {noformat} > I would suggest to have the older list back for digest calculation and release 3.0.14. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org