cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabrice Facorat <>
Subject Issue restarting cassandra with a cluster running Cassandra 1.2.x and Cassandra 2.0.x
Date Tue, 03 Mar 2015 18:37:26 GMT

we have a 52 Cassandra nodes cluster running Apache Cassandra 1.2.13.
As we are planning to migrate to Cassandra 2.0.10, we decide to do
some tests and we noticed that once a node in the cluster have been
upgraded to Cassandra 2.0.x, restarting a Cassandra 1.2.x will fail.

The tests were done on a 6 nodes cluster running Apache Cassandra
1.2.13 (x5) + Apache Cassandra 2.0.10 (x1) and using java 1.7.0_07.
The cassandra 1.2.x is failing with the following error in output.log :

INFO 15:18:41,233 Initializing
org.apache.cassandra.db.marshal.MarshalException: unable to coerce
'credval' to a  formatted date (long)
        at org.apache.cassandra.db.marshal.DateType.dateStringToTimestamp(
        at org.apache.cassandra.db.marshal.DateType.fromString(
        at org.apache.cassandra.db.marshal.ReversedType.fromString(
        at org.apache.cassandra.config.ColumnDefinition.fromSchema(
        at org.apache.cassandra.config.CFMetaData.addColumnDefinitionSchema(
        at org.apache.cassandra.config.CFMetaData.fromSchema(
        at org.apache.cassandra.config.KSMetaData.deserializeColumnFamilies(
        at org.apache.cassandra.config.KSMetaData.fromSchema(
        at org.apache.cassandra.db.DefsTable.loadFromTable(
        at org.apache.cassandra.config.DatabaseDescriptor.loadSchemas(
        at org.apache.cassandra.service.CassandraDaemon.setup(
        at org.apache.cassandra.service.CassandraDaemon.init(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
Caused by: java.text.ParseException: Unable to parse the date: credval
        at org.apache.commons.lang.time.DateUtils.parseDateWithLeniency(
        at org.apache.commons.lang.time.DateUtils.parseDateStrictly(
        at org.apache.cassandra.db.marshal.DateType.dateStringToTimestamp(
        ... 16 more
Cannot load daemon
Service exit with a return value of 3

We did some tests with a very simple schema without ReversedType, but
they failed too.

We did look at CASSANDRA-6695 and CASSANDRA-8462, and we had applied
the corresponding patch, but without success.

Does someone know a way to avoid this issue ?

Close the World, Open the Net

View raw message