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 624102009D9 for ; Thu, 19 May 2016 17:16:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 60E3B160A1E; Thu, 19 May 2016 15:16:14 +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 D0D8B1609AE for ; Thu, 19 May 2016 17:16:13 +0200 (CEST) Received: (qmail 5853 invoked by uid 500); 19 May 2016 15:16: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 5819 invoked by uid 99); 19 May 2016 15:16:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2016 15:16:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D7CF82C1F5C for ; Thu, 19 May 2016 15:16:12 +0000 (UTC) Date: Thu, 19 May 2016 15:16: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: Thu, 19 May 2016 15:16:14 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-11743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benjamin Lerer updated CASSANDRA-11743: --------------------------------------- Reviewer: Branimir Lambov > 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.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)