You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Ryan Fowler (JIRA)" <ji...@apache.org> on 2013/12/06 23:55:35 UTC

[jira] [Updated] (CASSANDRA-6459) Concurrency issue in Directories.getOrCreate()

     [ https://issues.apache.org/jira/browse/CASSANDRA-6459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan Fowler updated CASSANDRA-6459:
-----------------------------------

    Attachment: CASSANDRA-6459.txt

> Concurrency issue in Directories.getOrCreate()
> ----------------------------------------------
>
>                 Key: CASSANDRA-6459
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6459
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: 1.2 2.0
>            Reporter: Ryan Fowler
>         Attachments: CASSANDRA-6459.txt
>
>
> We're seeing an FSWriteError sometimes during repairs. I think it's because two threads are calling Directories.getOrCreate() on the same directory at about the same time. File.mkdirs() returns false if the directory already exists.
> A patch is forthcoming.
> Here's the exception we get:
> ERROR 2013-12-06 09:31:45,217 [Thread-11051] CassandraDaemon Exception in thread Thread[Thread-11051,5,main]
> FSWriteError in /data-1/cassandra/data/RedDeerCollege/Binaries/backups
>         at org.apache.cassandra.db.Directories.getOrCreate(Directories.java:483)
>         at org.apache.cassandra.db.Directories.getBackupsDirectory(Directories.java:242)
>         at org.apache.cassandra.db.DataTracker.maybeIncrementallyBackup(DataTracker.java:165)
>         at org.apache.cassandra.db.DataTracker.addSSTables(DataTracker.java:237)
>         at org.apache.cassandra.db.ColumnFamilyStore.addSSTables(ColumnFamilyStore.java:911)
>         at org.apache.cassandra.streaming.StreamInSession.closeIfFinished(StreamInSession.java:186)
>         at org.apache.cassandra.streaming.IncomingStreamReader.read(IncomingStreamReader.java:138)
>         at org.apache.cassandra.net.IncomingTcpConnection.stream(IncomingTcpConnection.java:238)
>         at org.apache.cassandra.net.IncomingTcpConnection.handleStream(IncomingTcpConnection.java:178)
> Someone else appears to have seen the same thing a while back:
> Here's someone that's had a similar problem:
> http://mail-archives.apache.org/mod_mbox/cassandra-user/201206.mbox/%3CA65C3B25-2866-48BE-8584-AB048663611C@thelastpickle.com%3E



--
This message was sent by Atlassian JIRA
(v6.1#6144)