cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Dusbabek (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-1119) detect incomplete commitlogheader
Date Thu, 10 Jun 2010 17:20:16 GMT

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

Gary Dusbabek commented on CASSANDRA-1119:
------------------------------------------

Yes, it is possible that the header could be corrupted while writing mutations to the CL (existing
CL mutations would be intact).

> detect incomplete commitlogheader
> ---------------------------------
>
>                 Key: CASSANDRA-1119
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1119
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Jonathan Ellis
>            Assignee: Matthew F. Dennis
>            Priority: Minor
>             Fix For: 0.6.3, 0.7
>
>         Attachments: 0001-cassandra-0.6-1119.patch, 0001-trunk-1119.patch, 0002-cassandra-0.6-1119.patch,
0002-trunk-1119.patch
>
>
> Kelvin reported:
> I just came across a corrupted CL file.  Here's the stacktrace when starting the server:
> Listening for transport dt_socket at address: 8888
> java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:160)
> Caused by: java.io.EOFException
> 	at java.io.RandomAccessFile.readInt(RandomAccessFile.java:725)
> 	at java.io.RandomAccessFile.readLong(RandomAccessFile.java:758)
> 	at org.apache.cassandra.db.commitlog.CommitLogHeader.readCommitLogHeader(CommitLogHeader.java:145)
> 	at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:181)
> 	at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:167)
> 	at org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:95)
> 	at org.apache.cassandra.thrift.CassandraDaemon.init(CassandraDaemon.java:142)
> 	... 5 more
> He added that the segment is only 6 bytes long, indicating that the header was never
completely written.  CLH should catch that EOF and skip the segment when replay is attempted.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message