[ https://issues.apache.org/jira/browse/CASSANDRA-1979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis reassigned CASSANDRA-1979: ----------------------------------------- Assignee: Nate McCall > CassandraServiceDataCleaner.prepare() fails with IOException. > ------------------------------------------------------------- > > Key: CASSANDRA-1979 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1979 > Project: Cassandra > Issue Type: Bug > Components: Contrib > Affects Versions: 0.7.0 > Environment: Windows XP > Reporter: Chris Ng > Assignee: Nate McCall > > CassandraServiceDataCleaner.prepare() fails with an IOException if run in > isolation. It seems that initializing the DataDescriptor creates a new > CommitLog file, and then the cleaner tries to delete this file and fails. > 16:06:07.204 [main] INFO o.a.c.config.DatabaseDescriptor - Loading settings > from file:/C:/workspace/sandbox/target/classes/cassandra.yaml > 16:06:07.282 [main] DEBUG o.a.c.config.DatabaseDescriptor - Syncing log with > a period of 10000 > 16:06:07.282 [main] INFO o.a.c.config.DatabaseDescriptor - DiskAccessMode > 'auto' determined to be standard, indexAccessMode is standard > 16:06:07.797 [main] DEBUG o.a.c.config.DatabaseDescriptor - setting > auto_bootstrap to false > 16:06:07.797 [main] INFO o.a.c.db.commitlog.CommitLogSegment - Creating new > commitlog segment > target/var/lib/cassandra/commitlog\CommitLog-1294934767797.log > 16:06:07.813 [main] DEBUG o.apache.cassandra.io.util.FileUtils - Deleting > CommitLog-1294934767797.log > Exception in thread "main" java.io.IOException: Failed to delete > C:\workspace\sandbox\target\var\lib\cassandra\commitlog\CommitLog-1294934767797.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(CassandraServiceDataCleaner.java:99) > at > org.apache.cassandra.contrib.utils.service.CassandraServiceDataCleaner.cleanupDataDirectories(CassandraServiceDataCleaner.java:53) > at > org.apache.cassandra.contrib.utils.service.CassandraServiceDataCleaner.prepare(CassandraServiceDataCleaner.java:44) > at cng.sandbox.App.main(App.java:15) > This also seems to leave a bunch of threads running in the background, so the > process has to be manually killed. > This was tested with the javautils in the 0.7.0 branch. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.