cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From martien huijsmans <martien.huijsm...@gmail.com>
Subject Failed to delete C:\tmp\lib\cassandra\commitlog\CommitLog-1332175713378.log
Date Wed, 21 Mar 2012 06:02:27 GMT
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