cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mattias W (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-12607) The cassandra commit log corrupted by restart even if no write operations in hours
Date Sat, 03 Sep 2016 07:52:20 GMT
Mattias W created CASSANDRA-12607:

             Summary: The cassandra commit log corrupted by restart even if no write operations
in hours
                 Key: CASSANDRA-12607
             Project: Cassandra
          Issue Type: Bug
         Environment: windows 10, 16 gb
            Reporter: Mattias W
             Fix For: 3.x

This is the 3rd time my commitlog is corrupted, and the server refuses to start. What worries
me is that I get these error issues even if no update were made to the database.

The last time, the computer were restarted by Windows update, and I detected the problem immediately.

The problems is solved by deleting the commitlog files (ok on my development system)

My config says that commitlog are synced every 10s seconds, so how can a file be corrupt unless
a crash occurs within these 10 seconds?

Is this a Cassandra bug? Or by design, i.e. bad design?

I am using 3.4 on Windows 10, Datastax installer.

In the stdout log, the last part is

INFO  06:17:39 Replaying C:\Program Files\DataStax-DDC\data\commitlog\CommitLog-6-1471353812251.log,
C:\Program Files\DataStax-DDC\data\commitlog\CommitLog-6-1471353812252.log, C:\Program Files\DataStax-DDC\data\commitlog\CommitLog-6-1471411951134.log,
C:\Program Files\DataStax-DDC\data\commitlog\CommitLog-6-1471454506802.log, C:\Program Files\DataStax-DDC\data\commitlog\CommitLog-6-1471532812678.log
ERROR 06:17:39 Exiting due to error while processing commit log during initialization.
org.apache.cassandra.db.commitlog.CommitLogReplayer$CommitLogReplayException: Could not read
commit log descriptor in file C:\Program Files\DataStax-DDC\data\commitlog\CommitLog-6-1471353812252.log
    at org.apache.cassandra.db.commitlog.CommitLogReplayer.handleReplayError(
    at org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(
    at org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(
    at org.apache.cassandra.db.commitlog.CommitLog.recover( [apache-cassandra-3.4.0.jar:3.4.0]
    at org.apache.cassandra.db.commitlog.CommitLog.recover( [apache-cassandra-3.4.0.jar:3.4.0]
    at org.apache.cassandra.service.CassandraDaemon.setup( [apache-cassandra-3.4.0.jar:3.4.0]
    at org.apache.cassandra.service.CassandraDaemon.activate( [apache-cassandra-3.4.0.jar:3.4.0]
    at org.apache.cassandra.service.CassandraDaemon.main( [apache-cassandra-3.4.0.jar:3.4.0]

This message was sent by Atlassian JIRA

View raw message