Fwd: java.io.IOException in CompactionExecutor

2011-02-21 Thread Aaron Morton
For those playing along at homeBegin forwarded message:From: ruslan usifov Date: 22 February 2011 2:43:52 AMTo: aa...@thelastpickle.comSubject: java.io.IOException in CompactionExecutor>>>Let me when you have created the bug. I create https://issues.apache.org/jira/browse/CASSANDRA-2207

Re: java.io.IOException in CompactionExecutor

2011-02-21 Thread Aaron Morton
The work around is to disable saving caches, as they may not be correctly saved. However you do not have access to change the settings for the system CFs. I imagine it may only be an issue if a node is rebooted as it may load stale caches.I think it's windows only as the function used to rename the

Re: java.io.IOException in CompactionExecutor

2011-02-21 Thread ruslan usifov
2011/2/21 Daniel Josefsson > There is no antivirus program or similar running on that machine I guess? > > That could definitely lock the file if Cassandra is creating the .tmp file > and then fairly shortly after tries to rename it. > No i haven't any antivirus installed

Re: java.io.IOException in CompactionExecutor

2011-02-21 Thread Daniel Josefsson
There is no antivirus program or similar running on that machine I guess? That could definitely lock the file if Cassandra is creating the .tmp file and then fairly shortly after tries to rename it. /Daniel On Mon, 2011-02-21 at 11:34 +, Aaron Morton wrote: > The code creates a new .tmp file

Re: java.io.IOException in CompactionExecutor

2011-02-21 Thread ruslan usifov
I have a question. How do you think this happens only on windows(on this platform i don't worry, because this is only test platform) or everywhere (linux)? And how dangerous this error, or at first time i may simply ignore it? 2011/2/21 Aaron Morton > Yes https://issues.apache.org/jira/browse/CA

Re: java.io.IOException in CompactionExecutor

2011-02-21 Thread Aaron Morton
Yes https://issues.apache.org/jira/browse/CASSANDRAThanksAaronOn 22 Feb, 2011,at 12:55 AM, ruslan usifov wrote:2011/2/21 Aaron Morton The code creates a new .tmp file in the saved_caches directory and then renames it to a non .tmp file name, so there is nothing else with

Re: java.io.IOException in CompactionExecutor

2011-02-21 Thread ruslan usifov
2011/2/21 Aaron Morton > The code creates a new .tmp file in the saved_caches directory and then > renames it to a non .tmp file name, so there is nothing else with a handle > open. The rename is to an existing file though. > > Ruslan can you please raise a bug against 0.7.2 for this and include

Re: java.io.IOException in CompactionExecutor

2011-02-21 Thread Aaron Morton
The code creates a new .tmp file in the saved_caches directory and then renames it to a non .tmp file name, so there is nothing else with a handle open. The rename is to an existing file though. Ruslan can you please raise a bug against 0.7.2 for this and include the platform. ThanksAaronOn 22 Feb,

Re: java.io.IOException in CompactionExecutor

2011-02-21 Thread Norman Maurer
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 : > From th F:/ I assume you are on Windows ? What version? > Just did a quick test on Ubuntu 10.0.4 and it

Re: java.io.IOException in CompactionExecutor

2011-02-21 Thread Aaron Morton
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-alt

java.io.IOException in CompactionExecutor

2011-02-21 Thread ruslan usifov
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