cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-6459) Concurrency issue in Directories.getOrCreate()
Date Sat, 07 Dec 2013 10:34:35 GMT

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

Aleksey Yeschenko updated CASSANDRA-6459:
-----------------------------------------

    Assignee: Ryan Fowler

> 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
>            Assignee: Ryan Fowler
>             Fix For: 1.2.13, 2.0.4
>
>         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)

Mime
View raw message