cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Tunnicliffe (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-8293) Restore Commitlogs throws exception on startup on trunk
Date Fri, 30 Jan 2015 13:20:34 GMT


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/ are included
in the patch. Otherwise, LGTM

> Restore Commitlogs throws exception on startup on trunk
> -------------------------------------------------------
>                 Key: CASSANDRA-8293
>                 URL:
>             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
> {code}
> ERROR [main] 2014-11-11 13:47:14,738 - Exception encountered
during startup
> java.lang.IllegalStateException: Unsupported commit log version: 5
>         at org.apache.cassandra.db.commitlog.CommitLogArchiver.maybeRestoreArchive(
>         at org.apache.cassandra.db.commitlog.CommitLog.recover( ~[main/:na]
>         at org.apache.cassandra.service.CassandraDaemon.setup(
>         at org.apache.cassandra.service.CassandraDaemon.activate(
>         at org.apache.cassandra.service.CassandraDaemon.main(
> {code}
> This is reproduced by the dtest {{}}.
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/ 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

View raw message