Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8CF9F19EAA for ; Wed, 20 Apr 2016 15:45:26 +0000 (UTC) Received: (qmail 50965 invoked by uid 500); 20 Apr 2016 15:45:26 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 50928 invoked by uid 500); 20 Apr 2016 15:45:26 -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 50904 invoked by uid 99); 20 Apr 2016 15:45:26 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2016 15:45:26 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 29C9D2C1F6A for ; Wed, 20 Apr 2016 15:45:26 +0000 (UTC) Date: Wed, 20 Apr 2016 15:45:26 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-11609) cassandra won't start with schema complaint that does not appear to be valid MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-11609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15250114#comment-15250114 ] Sylvain Lebresne commented on CASSANDRA-11609: ---------------------------------------------- It would sound like we're losing the frozeness information during the upgrade of the schema somehow. Slightly confused by the "Can be repro'd with ccm" though: are you able to reproduce with the step you provide here or not? > cassandra won't start with schema complaint that does not appear to be valid > ---------------------------------------------------------------------------- > > Key: CASSANDRA-11609 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11609 > Project: Cassandra > Issue Type: Bug > Reporter: Russ Hatch > > This was found in the upgrades user_types_test. > Can be repro'd with ccm. > Create a 1 node ccm cluster on 2.2.x > Create this schema: > {noformat} > create keyspace test2 with replication = {'class':'SimpleStrategy', 'replication_factor':1}; > use test2; > CREATE TYPE address ( > street text, > city text, > zip_code int, > phones set > ); > CREATE TYPE fullname ( > irstname text, > astname text > ); > CREATE TABLE users ( > d uuid PRIMARY KEY, > ame frozen, > ddresses map> > ); > {noformat} > Upgrade the single node to trunk, attempt to start the node up. Start will fail with this exception: > {noformat} > ERROR [main] 2016-04-19 11:33:19,218 CassandraDaemon.java:704 - Exception encountered during startup > org.apache.cassandra.exceptions.InvalidRequestException: Non-frozen UDTs are not allowed inside collections: map > at org.apache.cassandra.cql3.CQL3Type$Raw$RawCollection.throwNestedNonFrozenError(CQL3Type.java:686) ~[main/:na] > at org.apache.cassandra.cql3.CQL3Type$Raw$RawCollection.prepare(CQL3Type.java:652) ~[main/:na] > at org.apache.cassandra.cql3.CQL3Type$Raw$RawCollection.prepareInternal(CQL3Type.java:644) ~[main/:na] > at org.apache.cassandra.schema.CQLTypeParser.parse(CQLTypeParser.java:53) ~[main/:na] > at org.apache.cassandra.schema.SchemaKeyspace.createColumnFromRow(SchemaKeyspace.java:1022) ~[main/:na] > at org.apache.cassandra.schema.SchemaKeyspace.lambda$fetchColumns$12(SchemaKeyspace.java:1006) ~[main/:na] > at java.lang.Iterable.forEach(Iterable.java:75) ~[na:1.8.0_77] > at org.apache.cassandra.schema.SchemaKeyspace.fetchColumns(SchemaKeyspace.java:1006) ~[main/:na] > at org.apache.cassandra.schema.SchemaKeyspace.fetchTable(SchemaKeyspace.java:960) ~[main/:na] > at org.apache.cassandra.schema.SchemaKeyspace.fetchTables(SchemaKeyspace.java:939) ~[main/:na] > at org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspace(SchemaKeyspace.java:902) ~[main/:na] > at org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspacesWithout(SchemaKeyspace.java:879) ~[main/:na] > at org.apache.cassandra.schema.SchemaKeyspace.fetchNonSystemKeyspaces(SchemaKeyspace.java:867) ~[main/:na] > at org.apache.cassandra.config.Schema.loadFromDisk(Schema.java:134) ~[main/:na] > at org.apache.cassandra.config.Schema.loadFromDisk(Schema.java:124) ~[main/:na] > at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:229) [main/:na] > at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:558) [main/:na] > at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:687) [main/:na] > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)