incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Maurer <nor...@apache.org>
Subject Re: java.io.IOException in CompactionExecutor
Date Mon, 21 Feb 2011 11:22:17 GMT
The "problem" on windows is that it is a bit more worried about rename
a file if the handle is still open..

So maybe some stream not closed on the file.

Bye,
Norman


2011/2/21 Aaron Morton <aaron@thelastpickle.com>:
> From th F:/ I assume you are on Windows ? What version?
> Just did a quick test on Ubuntu 10.0.4 and it works, but the File.renameTo()
> function used has different behavior depending on the host OS. There may be
> some issues on
> Window http://stackoverflow.com/questions/1000183/reliable-file-renameto-alternative-on-windows
> Aaron
>
>
> On 21 Feb, 2011,at 11:43 PM, ruslan usifov <ruslan.usifov@gmail.com> wrote:
>
> I launch clean cassandra 7.2 instalation, and after few days i look at
> system.log follow error (more then 10 time):
>
>
> ERROR [CompactionExecutor:1] 2011-02-19 02:56:17,965
> AbstractCassandraDaemon.java (line 114) Fatal exception in thread
> Thread[CompactionExecutor:1,1,main]
> java.lang.RuntimeException: java.io.IOException: Unable to rename cache to
> F:\Cassandra\7.2\saved_caches\system-LocationInfo-KeyCache
>     at
> org.apache.cassandra.utils.WrappedRunnablerun(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:662)
> Caused by: java.io.IOException: Unable to rename cache to
> F:\Cassandra\7.2\saved_caches\system-LocationInfo-KeyCache
>     at
> org.apache.cassandra.io.sstable.CacheWriter.saveCache(CacheWriter.java:85)
>     at
> org.apache.cassandra.db.CompactionManager$9.runMayThrow(CompactionManager.java:746)
>     at
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>     ... 6 more
>
>

Mime
View raw message