cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Lerer (JIRA)" <>
Subject [jira] [Comment Edited] (CASSANDRA-11743) Race condition in CommitLog.recover can prevent startup
Date Tue, 17 May 2016 13:47:12 GMT


Benjamin Lerer edited comment on CASSANDRA-11743 at 5/17/16 1:46 PM:

[~blambov] could you review?

was (Author: blerer):

> Race condition in CommitLog.recover can prevent startup
> -------------------------------------------------------
>                 Key: CASSANDRA-11743
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Lifecycle
>            Reporter: Benjamin Lerer
>            Assignee: Benjamin Lerer
>             Fix For: 2.1.x, 2.2.x, 3.0.x, 3.x
> In {{CommitLog::recover}} the list of segments to recover from is determined by removing
the files managed by the {{CommitLogSegmentManager}} from the list of files present in the
commit log directory. Unfortunatly, due to the way the creation of segments is done there
is a time window where a segment file has been created but has not been added yet to the list
of segments managed by the {{CommitLogSegmentManager}}. If the filtering ocurs during that
time window the Commit log might try to recover from that new segment and crash.   

This message was sent by Atlassian JIRA

View raw message