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 DB90BEA4D for ; Tue, 5 Feb 2013 23:17:13 +0000 (UTC) Received: (qmail 49855 invoked by uid 500); 5 Feb 2013 23:17:13 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 49833 invoked by uid 500); 5 Feb 2013 23:17:13 -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 49824 invoked by uid 99); 5 Feb 2013 23:17:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 23:17:13 +0000 Date: Tue, 5 Feb 2013 23:17:13 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-5186) Schema NPEs in 1.1.6. Upgrading to 1.1.9 causes IllegalArgumentException loading Schema 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-5186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571878#comment-13571878 ] Jonathan Ellis commented on CASSANDRA-5186: ------------------------------------------- If you've done concurrent schema changes such that two CFs got the same ID on different machines you're SOL on any version. You'll need to blow away the schema and recreate it. (1.2 should avoid getting into this situation in the first place, but upgrading won't fix it once you're already there.) > Schema NPEs in 1.1.6. Upgrading to 1.1.9 causes IllegalArgumentException loading Schema > ---------------------------------------------------------------------------------------- > > Key: CASSANDRA-5186 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5186 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 1.1.9 > Reporter: Michael Harris > Priority: Critical > Attachments: 5186.patch > > > We experienced the problems described in CASSANDRA-4219 in version 1.1.6. We were told to upgrade to 1.1.9. Now the schema fails to load with the following error: > java.lang.IllegalArgumentException: value already present: 1105 > at com.google.common.base.Preconditions.checkArgument(Preconditions.java:115) > at com.google.common.collect.AbstractBiMap.putInBothMaps(AbstractBiMap.java:112) > at com.google.common.collect.AbstractBiMap.put(AbstractBiMap.java:96) > at com.google.common.collect.HashBiMap.put(HashBiMap.java:85) > at org.apache.cassandra.config.Schema.load(Schema.java:399) > at org.apache.cassandra.config.Schema.load(Schema.java:120) > at org.apache.cassandra.config.Schema.load(Schema.java:105) > at org.apache.cassandra.config.DatabaseDescriptor.loadSchemas(DatabaseDescriptor.java:534) > at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:183) > at com.palantir.phoenix.datastore.cass.server.PTCassandraServer$PTCassandraDaemon.setup(PTCassandraServer.java:64) > at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:389) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira