cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Krupitskiy (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-12873) Cassandra can't restart after set NULL to a frozen list
Date Thu, 03 Nov 2016 14:17:58 GMT
Mikhail Krupitskiy created CASSANDRA-12873:

             Summary: Cassandra can't restart after set NULL to a frozen list
                 Key: CASSANDRA-12873
             Project: Cassandra
          Issue Type: Bug
            Reporter: Mikhail Krupitskiy
            Priority: Critical

Cassandra 3.5.

1) Create a table with frozen list as one of columns.
2) Add a row where the column is NULL.
3) Stop Cassandra.
4) Run Cassandra.
Cassandra unable to start with the following exception:
ERROR o.a.c.utils.JVMStabilityInspector - Exiting due to error while processing commit log
during initialization.
org.apache.cassandra.db.commitlog.CommitLogReplayer$CommitLogReplayException: Unexpected error
deserializing mutation; saved to /var/folders/gl/bvj71v5d39339dlr8yf08drc0000gq/T/mutation5963614818028050337dat.
 This may be caused by replaying a mutation against a table with the same name but incompatible
schema.  Exception follows: org.apache.cassandra.serializers.MarshalException: Not enough
bytes to read a list
	at org.apache.cassandra.db.commitlog.CommitLogReplayer.handleReplayError(
	at org.apache.cassandra.db.commitlog.CommitLogReplayer.replayMutation(
	at org.apache.cassandra.db.commitlog.CommitLogReplayer.replaySyncSection(
	at org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(
	at org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(
	at org.apache.cassandra.db.commitlog.CommitLog.recover( [apache-cassandra-3.5.jar:3.5]
	at org.apache.cassandra.db.commitlog.CommitLog.recover( [apache-cassandra-3.5.jar:3.5]
	at org.apache.cassandra.service.CassandraDaemon.setup( [apache-cassandra-3.5.jar:3.5]
	at org.apache.cassandra.service.CassandraDaemon.activate( [apache-cassandra-3.5.jar:3.5]
	at org.apache.cassandra.service.CassandraDaemon.main( [apache-cassandra-3.5.jar:3.5]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_71]
	at sun.reflect.NativeMethodAccessorImpl.invoke( ~[na:1.8.0_71]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke( ~[na:1.8.0_71]

Below is a script for steps #1, #2:
CREATE keyspace if not exists kmv WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor':'1'}
USE kmv;
CREATE TABLE if not exists kmv (id int, l frozen<list<text>>, PRIMARY KEY(id));
INSERT into kmv (id, l) values (1, null) ;

This message was sent by Atlassian JIRA

View raw message