Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 42A542009A8 for ; Tue, 17 May 2016 18:02:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 414471609F5; Tue, 17 May 2016 16:02:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BB5A41607A8 for ; Tue, 17 May 2016 18:02:14 +0200 (CEST) Received: (qmail 42042 invoked by uid 500); 17 May 2016 16:02:13 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 41963 invoked by uid 99); 17 May 2016 16:02:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2016 16:02:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E99F02C1F64 for ; Tue, 17 May 2016 16:02:12 +0000 (UTC) Date: Tue, 17 May 2016 16:02:12 +0000 (UTC) From: "Benjamin Lerer (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-11743) Race condition in CommitLog.recover can prevent startup MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 17 May 2016 16:02:15 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-11743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benjamin Lerer updated CASSANDRA-11743: --------------------------------------- Status: Open (was: Patch Available) > Race condition in CommitLog.recover can prevent startup > ------------------------------------------------------- > > Key: CASSANDRA-11743 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11743 > 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 (v6.3.4#6332)