cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Krupitskiy (JIRA)" <j...@apache.org>
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
                 URL: https://issues.apache.org/jira/browse/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:
{noformat}
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(CommitLogReplayer.java:611)
[apache-cassandra-3.5.jar:3.5]
	at org.apache.cassandra.db.commitlog.CommitLogReplayer.replayMutation(CommitLogReplayer.java:568)
[apache-cassandra-3.5.jar:3.5]
	at org.apache.cassandra.db.commitlog.CommitLogReplayer.replaySyncSection(CommitLogReplayer.java:521)
[apache-cassandra-3.5.jar:3.5]
	at org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(CommitLogReplayer.java:407)
[apache-cassandra-3.5.jar:3.5]
	at org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(CommitLogReplayer.java:236)
[apache-cassandra-3.5.jar:3.5]
	at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:192) [apache-cassandra-3.5.jar:3.5]
	at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:172) [apache-cassandra-3.5.jar:3.5]
	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:283) [apache-cassandra-3.5.jar:3.5]
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:551) [apache-cassandra-3.5.jar:3.5]
	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:680) [apache-cassandra-3.5.jar:3.5]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_71]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_71]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.8.0_71]
	at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_71]
{noformat}

Below is a script for steps #1, #2:
{code}
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) ;
{code}



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

Mime
View raw message