cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominik Keil (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-11315) Upgrade from 2.2.5 to 3.0.3 Fails with AssertionError
Date Thu, 24 Mar 2016 13:36:25 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-11315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15210224#comment-15210224
] 

Dominik Keil commented on CASSANDRA-11315:
------------------------------------------

Interestingly, we now get another exception when starting with 2.2.5 again - but only on one
of the two nodes. The reverting process was as follows: 1) delete all data files 2) link all
data files from snapshot taken before the upgrade 3) start C* 2.2.5

{noformat}
[...]
INFO  [main] 2016-03-24 13:23:51,167 ColumnFamilyStore.java:382 - Initializing system.range_xfers
ERROR [main] 2016-03-24 13:23:51,475 CassandraDaemon.java:638 - Exception encountered during
startup
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
        at java.util.ArrayList.rangeCheck(ArrayList.java:653) ~[na:1.8.0_74]
        at java.util.ArrayList.set(ArrayList.java:444) ~[na:1.8.0_74]
        at org.apache.cassandra.config.CFMetaData.rebuild(CFMetaData.java:1265) ~[apache-cassandra-2.2.5.jar:2.2.5]
        at org.apache.cassandra.schema.LegacySchemaTables.createTableFromTableRowAndColumnRows(LegacySchemaTables.java:1115)
~[apache-cassandra-2.2.5.jar:2.2.5]
        at org.apache.cassandra.schema.LegacySchemaTables.createTableFromTableRowAndColumnsPartition(LegacySchemaTables.java:1017)
~[apache-cassandra-2.2.5.jar:2.2.5]
        at org.apache.cassandra.schema.LegacySchemaTables.createTableFromTableRow(LegacySchemaTables.java:1037)
~[apache-cassandra-2.2.5.jar:2.2.5]
        at org.apache.cassandra.schema.LegacySchemaTables.createTablesFromTablesPartition(LegacySchemaTables.java:1002)
~[apache-cassandra-2.2.5.jar:2.2.5]
        at org.apache.cassandra.schema.LegacySchemaTables.createKeyspaceFromSchemaPartitions(LegacySchemaTables.java:735)
~[apache-cassandra-2.2.5.jar:2.2.5]
        at org.apache.cassandra.schema.LegacySchemaTables.readSchemaFromSystemTables(LegacySchemaTables.java:219)
~[apache-cassandra-2.2.5.jar:2.2.5]
        at org.apache.cassandra.config.Schema.loadFromDisk(Schema.java:109) ~[apache-cassandra-2.2.5.jar:2.2.5]
        at org.apache.cassandra.config.Schema.loadFromDisk(Schema.java:99) ~[apache-cassandra-2.2.5.jar:2.2.5]
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:209) [apache-cassandra-2.2.5.jar:2.2.5]
        at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:516)
[apache-cassandra-2.2.5.jar:2.2.5]
        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:625) [apache-cassandra-2.2.5.jar:2.2.5]
{noformat}

There are no sstables for that table whatsoever... just a "manifest.json" file. Removing this
did not help

> Upgrade from 2.2.5 to 3.0.3 Fails with AssertionError
> -----------------------------------------------------
>
>                 Key: CASSANDRA-11315
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11315
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: Ubuntu 14.04, Oracle Java 8, Apache Cassandra 2.2.5 -> 3.0.3
>            Reporter: Dominik Keil
>            Assignee: Aleksey Yeschenko
>            Priority: Blocker
>             Fix For: 3.0.x, 3.x
>
>
> Hi,
> when trying to upgrade our development cluster from C* 2.2.5 to 3.0.3 Cassandra fails
during startup.
> Here's the relevant log snippet:
> {noformat}
> [...]
> INFO  [main] 2016-03-08 11:42:01,291 ColumnFamilyStore.java:381 - Initializing system.schema_triggers
> INFO  [main] 2016-03-08 11:42:01,302 ColumnFamilyStore.java:381 - Initializing system.schema_usertypes
> INFO  [main] 2016-03-08 11:42:01,313 ColumnFamilyStore.java:381 - Initializing system.schema_functions
> INFO  [main] 2016-03-08 11:42:01,324 ColumnFamilyStore.java:381 - Initializing system.schema_aggregates
> INFO  [main] 2016-03-08 11:42:01,576 SystemKeyspace.java:1284 - Detected version upgrade
from 2.2.5 to 3.0.3, snapshotting system keyspace
> WARN  [main] 2016-03-08 11:42:01,911 CompressionParams.java:382 - The sstable_compression
option has been deprecated. You should use class instead
> WARN  [main] 2016-03-08 11:42:01,959 CompressionParams.java:333 - The chunk_length_kb
option has been deprecated. You should use chunk_length_in_kb instead
> ERROR [main] 2016-03-08 11:42:02,638 CassandraDaemon.java:692 - Exception encountered
during startup
> java.lang.AssertionError: null
>         at org.apache.cassandra.db.CompactTables.getCompactValueColumn(CompactTables.java:90)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.config.CFMetaData.rebuild(CFMetaData.java:315) ~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.config.CFMetaData.<init>(CFMetaData.java:291) ~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.config.CFMetaData.create(CFMetaData.java:367) ~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.schema.LegacySchemaMigrator.decodeTableMetadata(LegacySchemaMigrator.java:337)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.schema.LegacySchemaMigrator.readTableMetadata(LegacySchemaMigrator.java:273)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.schema.LegacySchemaMigrator.readTable(LegacySchemaMigrator.java:244)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.schema.LegacySchemaMigrator.lambda$readTables$227(LegacySchemaMigrator.java:237)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_74]
>         at org.apache.cassandra.schema.LegacySchemaMigrator.readTables(LegacySchemaMigrator.java:237)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.schema.LegacySchemaMigrator.readKeyspace(LegacySchemaMigrator.java:186)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.schema.LegacySchemaMigrator.lambda$readSchema$224(LegacySchemaMigrator.java:177)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_74]
>         at org.apache.cassandra.schema.LegacySchemaMigrator.readSchema(LegacySchemaMigrator.java:177)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.schema.LegacySchemaMigrator.migrate(LegacySchemaMigrator.java:77)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:223)
[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:551)
[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:679)
[apache-cassandra-3.0.3.jar:3.0.3]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message