cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonid Shalupov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-7754) FileNotFoundException in MemtableFlushWriter
Date Sun, 17 Aug 2014 14:16:18 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-7754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14099955#comment-14099955
] 

Leonid Shalupov commented on CASSANDRA-7754:
--------------------------------------------

Thanks! I've found a race condition with cleanup of the data directory in my own code.

> FileNotFoundException in MemtableFlushWriter
> --------------------------------------------
>
>                 Key: CASSANDRA-7754
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7754
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: Linux, OpenJDK 1.7
>            Reporter: Leonid Shalupov
>            Priority: Critical
>
> Exception in cassandra logs, after upgrade to 2.1:
> [MemtableFlushWriter:91] ERROR o.a.c.service.CassandraDaemon - Exception in thread Thread[MemtableFlushWriter:91,5,main]
> java.lang.RuntimeException: java.io.FileNotFoundException: /xxx/cassandra/data/system/batchlog-0290003c977e397cac3efdfdc01d626b/system-batchlog-tmp-ka-186-Index.db
(No such file or directory)
> 	at org.apache.cassandra.io.util.SequentialWriter.<init>(SequentialWriter.java:75)
~[cassandra-all-2.1.0-rc5.jar:2.1.0-rc5]
> 	at org.apache.cassandra.io.util.SequentialWriter.open(SequentialWriter.java:104) ~[cassandra-all-2.1.0-rc5.jar:2.1.0-rc5]
> 	at org.apache.cassandra.io.util.SequentialWriter.open(SequentialWriter.java:99) ~[cassandra-all-2.1.0-rc5.jar:2.1.0-rc5]
> 	at org.apache.cassandra.io.sstable.SSTableWriter$IndexWriter.<init>(SSTableWriter.java:550)
~[cassandra-all-2.1.0-rc5.jar:2.1.0-rc5]
> 	at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:134)
~[cassandra-all-2.1.0-rc5.jar:2.1.0-rc5]
> 	at org.apache.cassandra.db.Memtable$FlushRunnable.createFlushWriter(Memtable.java:383)
~[cassandra-all-2.1.0-rc5.jar:2.1.0-rc5]
> 	at org.apache.cassandra.db.Memtable$FlushRunnable.writeSortedContents(Memtable.java:330)
~[cassandra-all-2.1.0-rc5.jar:2.1.0-rc5]
> 	at org.apache.cassandra.db.Memtable$FlushRunnable.runWith(Memtable.java:314) ~[cassandra-all-2.1.0-rc5.jar:2.1.0-rc5]
> 	at 
> org.apache.cassandra.io.util.DiskAwareRunnable.runMayThrow(DiskAwareRunnable.java:48)
~[cassandra-all-2.1.0-rc5.jar:2.1.0-rc5]
> 	at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~[cassandra-all-2.1.0-rc5.jar:2.1.0-rc5]
> 	at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:297)
~[guava-16.0.jar:na]
> 	at org.apache.cassandra.db.ColumnFamilyStore$Flush.run(ColumnFamilyStore.java:1054)
~[cassandra-all-2.1.0-rc5.jar:2.1.0-rc5]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_65]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_65]
> 	at java.lang.Thread.run(Thread.java:745) ~[na:1.7.0_65]
> Caused by: java.io.FileNotFoundException: /xxx/cassandra/data/system/batchlog-0290003c977e397cac3efdfdc01d626b/system-batchlog-tmp-ka-186-Index.db
(No such file or directory)
> 	at java.io.RandomAccessFile.open(Native Method) ~[na:1.7.0_65]
> 	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:241) ~[na:1.7.0_65]
> 	at org.apache.cassandra.io.util.SequentialWriter.<init>(SequentialWriter.java:71)
~[cassandra-all-2.1.0-rc5.jar:2.1.0-rc5]
> 	... 14 common frames omitted



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message