incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <aa...@thelastpickle.com>
Subject Re: Failed to delete C:\tmp\lib\cassandra\commitlog\CommitLog-1332175713378.log
Date Wed, 21 Mar 2012 17:04:36 GMT
I remember problems in the past with windows and deleting files. Are you shutting down the
server in the test tear down ? 

Cheers
 
-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 21/03/2012, at 7:02 PM, martien huijsmans wrote:

> Hi,
> 
> I have a JUNIT test case that runs on Mac, but fails on windows.
> Below is the code where the exception occurs and the exception.
> 
> I manually deleted the CommitLog-xyz.log, but that doesn't help.
> It feels like a bug in cassandra. Any comments?
> 
> Can anybody suggest a workaround?
> 
>       @BeforeClass
>       public static void startServer() throws Exception{
>          Config c = new Config();
>          URL resource = CassandraPojoTest.class.getResource("cassandra.yaml");
>          System.setProperty("cassandra.config", resource.toString());
>          CassandraServiceDataCleaner cleaner = new
> CassandraServiceDataCleaner();
>          cleaner.prepare();       <============ Exception occurs here
>          .......
>       }
> 
> I get following exception:
> java.io.IOException: Failed to delete
> C:\tmp\lib\cassandra\commitlog\CommitLog-1332175713378.log
>       at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:54)
>       at org.apache.cassandra.io.util.FileUtils.deleteRecursive(FileUtils.java:201)
>       at org.apache.cassandra.contrib.utils.service.CassandraServiceDataCleaner.cleanDir(Unknown
> Source)
>       at org.apache.cassandra.contrib.utils.service.CassandraServiceDataCleaner.cleanupDataDirectories(Unknown
> Source)
>       at org.apache.cassandra.contrib.utils.service.CassandraServiceDataCleaner.prepare(Unknown
> Source)
>       at com.ericsson.labs.oae.casspojo.CassandraPojoTest.startServer(CassandraPojoTest.java:53)
> 
> I am running on windows vista.
> I used cassandra version 1.0.8.
> 
> Regards Martien


Mime
View raw message