cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-11490) Cannot upgrade from 2.2.5 to 3.0.4
Date Mon, 04 Apr 2016 17:44:25 GMT

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

Aleksey Yeschenko commented on CASSANDRA-11490:
-----------------------------------------------

bq. Oh boy this sounds fun. I will see if we can either roll back snaps to 2.0.X and upgrade
from there or if we want to shuffle all the data around. Thanks for the help!

Nah. No need to. The workaround should work. If you have no {{comment}} on any of the tables,
then a less tedious version would be {{ALTER TABLE <table> WITH comment = ''}} - doesn't
rely on the previous value - on each of the tables.

Also, starting with 3.0, we check the previous version on upgrade, and bail if you skipped
an important immediate step. Your case (skipping 2.1) wouldn't happen now.

> Cannot upgrade from 2.2.5 to 3.0.4
> ----------------------------------
>
>                 Key: CASSANDRA-11490
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11490
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Joshua Knarr
>            Assignee: Aleksey Yeschenko
>            Priority: Minor
>
> {code}
> INFO  [main] 2016-04-04 11:57:31,181 SystemKeyspace.java:1284 - Detected version upgrade
from 2.2.5 to 3.0.4, snapshotting system keyspace
> ERROR [main] 2016-04-04 11:57:31,650 CassandraDaemon.java:692 - Exception encountered
during startup
> java.lang.RuntimeException: org.codehaus.jackson.JsonParseException: Unexpected character
('K' (code 75)): expected a valid value (number, String, array, object, 'true', 'false' or
'null')
>  at [Source: java.io.StringReader@3c74247d; line: 1, column: 2]
> 	at org.apache.cassandra.utils.FBUtilities.fromJsonMap(FBUtilities.java:561) ~[apache-cassandra-3.0.4.jar:3.0.4]
> 	at org.apache.cassandra.schema.LegacySchemaMigrator.decodeTableParams(LegacySchemaMigrator.java:381)
~[apache-cassandra-3.0.4.jar:3.0.4]
> 	at org.apache.cassandra.schema.LegacySchemaMigrator.decodeTableMetadata(LegacySchemaMigrator.java:363)
~[apache-cassandra-3.0.4.jar:3.0.4]
> 	at org.apache.cassandra.schema.LegacySchemaMigrator.readTableMetadata(LegacySchemaMigrator.java:273)
~[apache-cassandra-3.0.4.jar:3.0.4]
> 	at org.apache.cassandra.schema.LegacySchemaMigrator.readTable(LegacySchemaMigrator.java:244)
~[apache-cassandra-3.0.4.jar:3.0.4]
> 	at org.apache.cassandra.schema.LegacySchemaMigrator.lambda$readTables$233(LegacySchemaMigrator.java:237)
~[apache-cassandra-3.0.4.jar:3.0.4]
> 	at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_77]
> 	at org.apache.cassandra.schema.LegacySchemaMigrator.readTables(LegacySchemaMigrator.java:237)
~[apache-cassandra-3.0.4.jar:3.0.4]
> 	at org.apache.cassandra.schema.LegacySchemaMigrator.readKeyspace(LegacySchemaMigrator.java:186)
~[apache-cassandra-3.0.4.jar:3.0.4]
> 	at org.apache.cassandra.schema.LegacySchemaMigrator.lambda$readSchema$230(LegacySchemaMigrator.java:177)
~[apache-cassandra-3.0.4.jar:3.0.4]
> 	at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_77]
> 	at org.apache.cassandra.schema.LegacySchemaMigrator.readSchema(LegacySchemaMigrator.java:177)
~[apache-cassandra-3.0.4.jar:3.0.4]
> 	at org.apache.cassandra.schema.LegacySchemaMigrator.migrate(LegacySchemaMigrator.java:77)
~[apache-cassandra-3.0.4.jar:3.0.4]
> 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:223) [apache-cassandra-3.0.4.jar:3.0.4]
> 	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:551) [apache-cassandra-3.0.4.jar:3.0.4]
> 	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:679) [apache-cassandra-3.0.4.jar:3.0.4]
> Caused by: org.codehaus.jackson.JsonParseException: Unexpected character ('K' (code 75)):
expected a valid value (number, String, array, object, 'true', 'false' or 'null')
>  at [Source: java.io.StringReader@3c74247d; line: 1, column: 2]
> 	at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1432) ~[jackson-core-asl-1.9.2.jar:1.9.2]
> 	at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:385)
~[jackson-core-asl-1.9.2.jar:1.9.2]
> 	at org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:306)
~[jackson-core-asl-1.9.2.jar:1.9.2]
> 	at org.codehaus.jackson.impl.ReaderBasedParser._handleUnexpectedValue(ReaderBasedParser.java:1192)
~[jackson-core-asl-1.9.2.jar:1.9.2]
> 	at org.codehaus.jackson.impl.ReaderBasedParser.nextToken(ReaderBasedParser.java:479)
~[jackson-core-asl-1.9.2.jar:1.9.2]
> 	at org.codehaus.jackson.map.ObjectMapper._initForReading(ObjectMapper.java:2761) ~[jackson-mapper-asl-1.9.2.jar:1.9.2]
> 	at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2709) ~[jackson-mapper-asl-1.9.2.jar:1.9.2]
> 	at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1854) ~[jackson-mapper-asl-1.9.2.jar:1.9.2]
> 	at org.apache.cassandra.utils.FBUtilities.fromJsonMap(FBUtilities.java:557) ~[apache-cassandra-3.0.4.jar:3.0.4]
> 	... 15 common frames omitted
> {code}
> What do? This is an existing 2.2.5 installation I am attempting to upgrade to 3.0.4 -
this happens consistently. Tips? Tricks?



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

Mime
View raw message