You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sam Tunnicliffe (JIRA)" <ji...@apache.org> on 2015/01/30 14:20:34 UTC
[jira] [Commented] (CASSANDRA-8293) Restore Commitlogs throws
exception on startup on trunk
[ https://issues.apache.org/jira/browse/CASSANDRA-8293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14298611#comment-14298611 ]
Sam Tunnicliffe commented on CASSANDRA-8293:
--------------------------------------------
[~JoshuaMcKenzie], you only need to change the second occurrence of VERSION_21, the first is valid as it is. Also, your local mods to conf/commitlog_archiving.properties are included in the patch. Otherwise, LGTM
> Restore Commitlogs throws exception on startup on trunk
> -------------------------------------------------------
>
> Key: CASSANDRA-8293
> URL: https://issues.apache.org/jira/browse/CASSANDRA-8293
> Project: Cassandra
> Issue Type: Bug
> Reporter: Philip Thompson
> Assignee: Joshua McKenzie
> Fix For: 3.0
>
> Attachments: 8293_v1.txt, CommitLog-5-1415734519132.log, CommitLog-5-1415734519133.log, CommitLog-5-1415734519134.log, CommitLog-5-1415734519135.log, node1.log
>
>
> Running Cassandra from trunk, restoring commitlogs generated from trunk throws the following exception:
> {code}
> ERROR [main] 2014-11-11 13:47:14,738 CassandraDaemon.java:482 - Exception encountered during startup
> java.lang.IllegalStateException: Unsupported commit log version: 5
> at org.apache.cassandra.db.commitlog.CommitLogArchiver.maybeRestoreArchive(CommitLogArchiver.java:215) ~[main/:na]
> at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:116) ~[main/:na]
> at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:300) [main/:na]
> at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:465) [main/:na]
> at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:557) [main/:na]
> {code}
> This is reproduced by the dtest {{snapshot_test.py:TestArchiveCommitlog.test_archive_commitlog}}. Attached are the system log of the node that threw the exception, and the commitlog files used. I am restoring the commitlog files by editing conf/commitlog_archiving.properties to look like this:{code}# Command to execute to make an archived commitlog live again.
> # Parameters: %from is the full path to an archived commitlog segment (from restore_directories)
> # %to is the live commitlog directory
> # Example: restore_command=cp -f %from %to
> restore_command=cp -f %from %to
> # Directory to scan the recovery files in.
> restore_directories=/Users/philipthompson/cstar/archived/{code}. If the files are placed into the live commitlog directory manually, and then C* is started, there are no exceptions.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)