Illegal file mode when saving caches
------------------------------------
Key: CASSANDRA-2131
URL: https://issues.apache.org/jira/browse/CASSANDRA-2131
Project: Cassandra
Issue Type: Bug
Components: Core
Affects Versions: 0.7.1
Reporter: Aaron Morton
The following error is logged when trying to save caches
DEBUG [CompactionExecutor:1] 2011-02-08 07:30:03,647 CacheWriter.java (line 45)
Saving /var/lib/cassandra/saved_caches/Keyspace1-ascii-KeyCache
ERROR [CompactionExecutor:1] 2011-02-08 07:30:03,725
AbstractCassandraDaemon.java (line 114) Fatal exception in thread
Thread[CompactionExecutor:1,1,main]
java.lang.RuntimeException: java.lang.IllegalArgumentException: Illegal mode
"w" must be one of "r", "rw", "rws", or "rwd"
at
org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.IllegalArgumentException: Illegal mode "w" must be one of
"r", "rw", "rws", or "rwd"
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:197)
at
org.apache.cassandra.io.util.BufferedRandomAccessFile.<init>(BufferedRandomAccessFile.java:116)
at
org.apache.cassandra.io.sstable.CacheWriter.saveCache(CacheWriter.java:48)
at
org.apache.cassandra.db.CompactionManager$9.runMayThrow(CompactionManager.java:746)
at
org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
... 6 more
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira