cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CASSANDRA-6494) Cassandra refuses to restart due to a corrupted commit log.
Date Tue, 31 Dec 2013 21:42:51 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-6494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonathan Ellis resolved CASSANDRA-6494.
---------------------------------------

    Resolution: Duplicate

That would do it.  CASSANDRA-5202 will fix this but until then you shouldn't drop/recreate
with same name.

If you don't need the data, removing the commitlog segment will allow starting up.  If you
do need it, you're looking at manual surgery on the commitlog to get rid of the pre-schema-change
entries (e.g. by setting cfid to -1) which would allow the rest to go ahead.

> Cassandra refuses to restart due to a corrupted commit log.
> -----------------------------------------------------------
>
>                 Key: CASSANDRA-6494
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6494
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Shao-Chuan Wang
>
> This is running on our production server. Please advise how to address this issue. Thank
you!
> INFO 02:46:58,879 Finished reading /mnt/cassandra/commitlog/CommitLog-3-1386069222785.log
> ERROR 02:46:58,879 Exception encountered during startup
> java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException:
706167655f74616773 is not defined as a collection
> 	at org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:411)
> 	at org.apache.cassandra.utils.FBUtilities.waitOnFutures(FBUtilities.java:400)
> 	at org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(CommitLogReplayer.java:273)
> 	at org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(CommitLogReplayer.java:96)
> 	at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:146)
> 	at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:126)
> 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:299)
> 	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:442)
> 	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:485)
> Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: 706167655f74616773
is not defined as a collection
> 	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> 	at java.util.concurrent.FutureTask.get(FutureTask.java:188)
> 	at org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:407)
> 	... 8 more
> Caused by: java.lang.RuntimeException: 706167655f74616773 is not defined as a collection
> 	at org.apache.cassandra.db.marshal.ColumnToCollectionType.compareCollectionMembers(ColumnToCollectionType.java:72)
> 	at org.apache.cassandra.db.marshal.AbstractCompositeType.compare(AbstractCompositeType.java:85)
> 	at org.apache.cassandra.db.marshal.AbstractCompositeType.compare(AbstractCompositeType.java:35)
> 	at edu.stanford.ppl.concurrent.SnapTreeMap$1.compareTo(SnapTreeMap.java:538)
> 	at edu.stanford.ppl.concurrent.SnapTreeMap.attemptUpdate(SnapTreeMap.java:1108)
> 	at edu.stanford.ppl.concurrent.SnapTreeMap.attemptUpdate(SnapTreeMap.java:1192)
> 	at edu.stanford.ppl.concurrent.SnapTreeMap.updateUnderRoot(SnapTreeMap.java:1059)
> 	at edu.stanford.ppl.concurrent.SnapTreeMap.update(SnapTreeMap.java:1023)
> 	at edu.stanford.ppl.concurrent.SnapTreeMap.putIfAbsent(SnapTreeMap.java:985)
> 	at org.apache.cassandra.db.AtomicSortedColumns$Holder.addColumn(AtomicSortedColumns.java:323)
> 	at org.apache.cassandra.db.AtomicSortedColumns.addAllWithSizeDelta(AtomicSortedColumns.java:195)
> 	at org.apache.cassandra.db.Memtable.resolve(Memtable.java:196)
> 	at org.apache.cassandra.db.Memtable.put(Memtable.java:160)
> 	at org.apache.cassandra.db.ColumnFamilyStore.apply(ColumnFamilyStore.java:842)
> 	at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:373)
> 	at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:338)
> 	at org.apache.cassandra.db.commitlog.CommitLogReplayer$1.runMayThrow(CommitLogReplayer.java:265)
> 	at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:724)
> java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException:
706167655f74616773 is not defined as a collection
> 	at org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:411)
> 	at org.apache.cassandra.utils.FBUtilities.waitOnFutures(FBUtilities.java:400)
> 	at org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(CommitLogReplayer.java:273)
> 	at org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(CommitLogReplayer.java:96)
> 	at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:146)
> 	at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:126)
> 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:299)
> 	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:442)
> 	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:485)
> Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: 706167655f74616773
is not defined as a collection
> 	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> 	at java.util.concurrent.FutureTask.get(FutureTask.java:188)
> 	at org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:407)
> 	... 8 more
> Caused by: java.lang.RuntimeException: 706167655f74616773 is not defined as a collection
> 	at org.apache.cassandra.db.marshal.ColumnToCollectionType.compareCollectionMembers(ColumnToCollectionType.java:72)
> 	at org.apache.cassandra.db.marshal.AbstractCompositeType.compare(AbstractCompositeType.java:85)
> 	at org.apache.cassandra.db.marshal.AbstractCompositeType.compare(AbstractCompositeType.java:35)
> 	at edu.stanford.ppl.concurrent.SnapTreeMap$1.compareTo(SnapTreeMap.java:538)
> 	at edu.stanford.ppl.concurrent.SnapTreeMap.attemptUpdate(SnapTreeMap.java:1108)
> 	at edu.stanford.ppl.concurrent.SnapTreeMap.attemptUpdate(SnapTreeMap.java:1192)
> 	at edu.stanford.ppl.concurrent.SnapTreeMap.updateUnderRoot(SnapTreeMap.java:1059)
> 	at edu.stanford.ppl.concurrent.SnapTreeMap.update(SnapTreeMap.java:1023)
> 	at edu.stanford.ppl.concurrent.SnapTreeMap.putIfAbsent(SnapTreeMap.java:985)
> 	at org.apache.cassandra.db.AtomicSortedColumns$Holder.addColumn(AtomicSortedColumns.java:323)
> 	at org.apache.cassandra.db.AtomicSortedColumns.addAllWithSizeDelta(AtomicSortedColumns.java:195)
> 	at org.apache.cassandra.db.Memtable.resolve(Memtable.java:196)
> 	at org.apache.cassandra.db.Memtable.put(Memtable.java:160)
> 	at org.apache.cassandra.db.ColumnFamilyStore.apply(ColumnFamilyStore.java:842)
> 	at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:373)
> 	at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:338)
> 	at org.apache.cassandra.db.commitlog.CommitLogReplayer$1.runMayThrow(CommitLogReplayer.java:265)
> 	at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:724)
> Exception encountered during startup: java.util.concurrent.ExecutionException: java.lang.RuntimeException:
706167655f74616773 is not defined as a collection



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message