cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Branimir Lambov (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-11995) Commitlog replaced with all NULs
Date Mon, 24 Jul 2017 14:19:00 GMT


Branimir Lambov commented on CASSANDRA-11995:

The patch looks good.

Did this happen during normal shutdown? The log is supposed to clean-up such unused segments,
but probably isn't able to delete them on Windows because they are still memory-mapped. Still,
they should have a header if that's the case, shouldn't they?

There may also be a further complication related to this. If the empty segment did not sync
on a crash, the one before it may be truncated too. We may have to treat that situation as
tolerable too.

> Commitlog replaced with all NULs
> --------------------------------
>                 Key: CASSANDRA-11995
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: Windows 10 Enterprise 1511
> DataStax Cassandra Community Server 2.2.3
>            Reporter: James Howe
>            Assignee: Jeff Jirsa
> I noticed this morning that Cassandra was failing to start, after being shut down on
> {code}
> ERROR 09:13:37 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 Community\data\commitlog\CommitLog-5-1465571056722.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-2.2.3.jar:2.2.3]
> 	at org.apache.cassandra.db.commitlog.CommitLog.recover( [apache-cassandra-2.2.3.jar:2.2.3]
> 	at org.apache.cassandra.service.CassandraDaemon.setup( [apache-cassandra-2.2.3.jar:2.2.3]
> 	at org.apache.cassandra.service.CassandraDaemon.activate( [apache-cassandra-2.2.3.jar:2.2.3]
> 	at org.apache.cassandra.service.CassandraDaemon.main( [apache-cassandra-2.2.3.jar:2.2.3]
> {code}
> Checking the referenced file reveals it comprises 33,554,432 (32 * 1024 * 1024) NUL bytes.
> No logs (stdout, stderr, prunsrv) from the shutdown show any other issues and appear
exactly as normal.
> Is installed as a service via DataStax's distribution.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message