Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C7C0818F63 for ; Tue, 30 Jun 2015 06:13:05 +0000 (UTC) Received: (qmail 57334 invoked by uid 500); 30 Jun 2015 06:13:05 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 57303 invoked by uid 500); 30 Jun 2015 06:13:05 -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 57287 invoked by uid 99); 30 Jun 2015 06:13:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2015 06:13:05 +0000 Date: Tue, 30 Jun 2015 06:13:05 +0000 (UTC) From: "Stefania (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-9635) Silent startup failure with filesystem that does not support mmap MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-9635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefania updated CASSANDRA-9635: -------------------------------- Fix Version/s: (was: 2.0.x) 2.1.x > Silent startup failure with filesystem that does not support mmap > ----------------------------------------------------------------- > > Key: CASSANDRA-9635 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9635 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Kevin McLaughlin > Assignee: Stefania > Fix For: 2.1.x > > Attachments: c_tdump.txt > > > C* version 2.0.9. > When running C* in virtualbox on OS X via boot2docker with the data directory on a shared volume from the host system (vboxfs), C* fails to start without printing any errors. > I do not know if C* is supposed to support filesystems that do not support mmap (does not appear so), however, I think the failure exposes a static initialization deadlock (http://ternarysearch.blogspot.ru/2013/07/static-initialization-deadlock.html). > I believe the virtualbox "bug" is https://www.virtualbox.org/ticket/819. > Stacktrace of the deadlock is attached. When placing a t.printStackTrace() between lines 115 and 116 in https://github.com/apache/cassandra/blob/cassandra-2.0.9/src/java/org/apache/cassandra/db/commitlog/CommitLogAllocator.java, the stack trace at startup is: > {quote} > DEBUG 21:16:54,716 Creating new commit log segment /var/lib/cassandra/commitlog/CommitLog-3-1435007814714.log > FSWriteError in /var/lib/cassandra/commitlog/CommitLog-3-1435007814714.log > at org.apache.cassandra.db.commitlog.CommitLogSegment.(CommitLogSegment.java:143) > at org.apache.cassandra.db.commitlog.CommitLogSegment.freshSegment(CommitLogSegment.java:90) > at org.apache.cassandra.db.commitlog.CommitLogAllocator.createFreshSegment(CommitLogAllocator.java:263) > at org.apache.cassandra.db.commitlog.CommitLogAllocator.access$500(CommitLogAllocator.java:50) > at org.apache.cassandra.db.commitlog.CommitLogAllocator$1.runMayThrow(CommitLogAllocator.java:109) > at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.io.IOException: Invalid argument > at sun.nio.ch.FileChannelImpl.map0(Native Method) > at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:893) > at org.apache.cassandra.db.commitlog.CommitLogSegment.(CommitLogSegment.java:133) > ... 6 more > {quote} -- This message was sent by Atlassian JIRA (v6.3.4#6332)