cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-3642) Failed to delete any Index.db on Windows
Date Tue, 03 Jan 2012 11:48:39 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-3642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sylvain Lebresne updated CASSANDRA-3642:
----------------------------------------

    Attachment: 3642.patch

I don't have a windows readily available, but a reasonable theory would be that this is due
to problem unmapping an index file (but not the data file, which at least for mmap_keys_only
without JNA could be a common situation).

Attaching a patch to catch that and issue a more precise message instead. Note that the patch
will basically left the index file around, file that would be only deleted on the next restart.
This is clearly not ideal, but if my theory is correct, this problem only happens without
JNA. But my theory may not be correct.

Note for the record that getting this exception is rather harmless except for some hopefully
small files kept until the next restart. 
                
> Failed to delete any Index.db on Windows
> ----------------------------------------
>
>                 Key: CASSANDRA-3642
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3642
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>         Environment: Windows Server 2008 R2 64bit
> Java SE 7u1 64bit
>            Reporter: Viktor Jevdokimov
>            Assignee: Sylvain Lebresne
>             Fix For: 1.0.7
>
>         Attachments: 3642.patch
>
>
> After upgrade Cassandra 0.8.7 to 1.0.6 under Windows Server 2008 R2 64bit with disk acces
mode mmap_index_only, Cassandra failing to delete any *-Index.db files after compaction or
scrub:
> ERROR 13:43:17,490 Fatal exception in thread Thread[NonPeriodicTasks:1,5,main]
> java.lang.RuntimeException: java.io.IOException: Failed to delete D:\cassandra\data\data\system\LocationInfo-g-29-Index.db
>         at org.apache.cassandra.utils.FBUtilities.unchecked(FBUtilities.java:689)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>         at java.util.concurrent.FutureTask.run(Unknown Source)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown
Source)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Failed
to delete D:\cassandra\data\data\system\LocationInfo-g-29-Index.db
>         at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:54)
>         at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:44)
>         at org.apache.cassandra.io.sstable.SSTable.delete(SSTable.java:141)
>         at org.apache.cassandra.io.sstable.SSTableDeletingTask.runMayThrow(SSTableDeletingTask.java:81)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 8 more
> ERROR 17:20:09,701 Fatal exception in thread Thread[NonPeriodicTasks:1,5,main]
> java.lang.RuntimeException: java.io.IOException: Failed to delete D:\cassandra\data\data\Keyspace1\ColumnFamily1-hc-840-Index.db
>         at org.apache.cassandra.utils.FBUtilities.unchecked(FBUtilities.java:689)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>         at java.util.concurrent.FutureTask.run(Unknown Source)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown
Source)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Failed
to delete D:\cassandra\data\data\ Keyspace1\ColumnFamily1-hc-840-Index.db
>         at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:54)
>         at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:44)
>         at org.apache.cassandra.io.sstable.SSTable.delete(SSTable.java:141)
>         at org.apache.cassandra.io.sstable.SSTableDeletingTask.runMayThrow(SSTableDeletingTask.java:81)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 8 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message