You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Viktor Jevdokimov (Created) (JIRA)" <ji...@apache.org> on 2011/12/16 10:38:30 UTC
[jira] [Created] (CASSANDRA-3642) Failed to delete any Index.db on
Windows
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.6
Environment: Windows Server 2008 R2 64bit
Java SE 7u1 64bit
Reporter: Viktor Jevdokimov
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
[jira] [Commented] (CASSANDRA-3642) Failed to delete any Index.db
on Windows
Posted by "Sylvain Lebresne (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-3642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179383#comment-13179383 ]
Sylvain Lebresne commented on CASSANDRA-3642:
---------------------------------------------
Side node: I see Viktor indicated using java 7. I wonder if that is relevant somehow.
> 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
> Priority: Minor
> 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
[jira] [Commented] (CASSANDRA-3642) Failed to delete any Index.db
on Windows
Posted by "Ophir Radnitz (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-3642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179443#comment-13179443 ]
Ophir Radnitz commented on CASSANDRA-3642:
------------------------------------------
We're seeing it on Windows Server 2008 R2 64bit with Java 1.6 u27.
> 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
> Priority: Minor
> 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
[jira] [Updated] (CASSANDRA-3642) Failed to delete any Index.db on
Windows
Posted by "Sylvain Lebresne (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-3642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sylvain Lebresne updated CASSANDRA-3642:
----------------------------------------
Priority: Minor (was: Major)
> 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
> Priority: Minor
> 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
[jira] [Updated] (CASSANDRA-3642) Failed to delete any Index.db on
Windows
Posted by "Jonathan Ellis (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-3642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-3642:
--------------------------------------
Fix Version/s: (was: 1.0.10)
Assignee: (was: Sylvain Lebresne)
I no longer see problems relating to index components after CASSANDRA-3967. Instead, I see this:
[junit] ERROR 13:41:33,813 Unable to delete build\test\cassandra\data\system\schema_columnfamilies\system-schema_columnfamilies-hc-11-Data.db (it will be removed on server restart; we'll also retry after GC)
> 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
> Priority: Minor
> 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
[jira] [Issue Comment Edited] (CASSANDRA-3642) Failed to delete any
Index.db on Windows
Posted by "Jonathan Ellis (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-3642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13176751#comment-13176751 ]
Jonathan Ellis edited comment on CASSANDRA-3642 at 12/28/11 6:41 PM:
---------------------------------------------------------------------
This is easily reproducible with "ant test."
was (Author: jbellis):
This happens is easily reproducible with "ant test."
> 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
>
>
> 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
[jira] [Updated] (CASSANDRA-3642) Failed to delete any Index.db on
Windows
Posted by "Sylvain Lebresne (Updated) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (CASSANDRA-3642) Failed to delete any Index.db
on Windows
Posted by "Jonathan Ellis (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-3642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179253#comment-13179253 ]
Jonathan Ellis commented on CASSANDRA-3642:
-------------------------------------------
The Sun/Oracle JVM does include the cleaner method on Windows as well, so unless Viktor is running another JVM that's not going to fix it.
But now I find I can't reproduce my own test failures either, with or without this patch. I get a bunch of failures like this with SSTableReaderTest:
{noformat}
[junit] java.io.IOException: Exception while executing the command: cmd /c mklink /H C:\Users\Jonathan\projects\cassandra\git\build\test\cassandra\data\Keyspace1\backups\Standard1-hc-2-Statistics.db c:\Users\Jonathan\projects\cassandra\git\build\test\cassandra\data\Keyspace1\Standard1-hc-2-Statistics.db, command error Code: 1, command output: Cannot create a file when that file already exists.
[junit]
[junit] at org.apache.cassandra.utils.CLibrary.exec(CLibrary.java:213)
[junit] at org.apache.cassandra.utils.CLibrary.createHardLinkWithExec(CLibrary.java:188)
[junit] at org.apache.cassandra.utils.CLibrary.createHardLink(CLibrary.java:151)
[junit] at org.apache.cassandra.io.sstable.SSTableReader.createLinks(SSTableReader.java:833)
[junit] at org.apache.cassandra.db.DataTracker$1.runMayThrow(DataTracker.java:161)
[junit] at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
[junit] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
[junit] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
[junit] at java.util.concurrent.FutureTask.run(FutureTask.java:138)
[junit] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
[junit] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
[junit] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[junit] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[junit] at java.lang.Thread.run(Thread.java:662)
{noformat}
... but rolling back to 1.0.2 (before the sha was introduced) doesn't help reproduce it either. Weird.
> 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
> Priority: Minor
> 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
[jira] [Updated] (CASSANDRA-3642) Failed to delete any Index.db on
Windows
Posted by "Jonathan Ellis (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-3642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-3642:
--------------------------------------
Affects Version/s: (was: 1.0.6)
1.0.0
Fix Version/s: 1.0.7
Assignee: Sylvain Lebresne
This happens is easily reproducible with "ant test."
> 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
>
>
> 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
[jira] [Commented] (CASSANDRA-3642) Failed to delete any Index.db
on Windows
Posted by "Viktor Jevdokimov (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-3642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13171076#comment-13171076 ]
Viktor Jevdokimov commented on CASSANDRA-3642:
----------------------------------------------
This is not reproducible with disk_access_mode standard, only with mmap and mmap_index_only.
> 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.6
> Environment: Windows Server 2008 R2 64bit
> Java SE 7u1 64bit
> Reporter: Viktor Jevdokimov
>
> 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
[jira] [Commented] (CASSANDRA-3642) Failed to delete any Index.db
on Windows
Posted by "Sylvain Lebresne (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-3642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179381#comment-13179381 ]
Sylvain Lebresne commented on CASSANDRA-3642:
---------------------------------------------
You're right, for some reason I was thinking of JNA but the mmaping cleaner don't depend on it. I guess the attached patch still provide a slightly better handling of error in the case there is no cleaner method available, but that's unlikely to be the problem here.
Besides, if Viktor is seeing problem with deleting data files with standard disk access, then it would rather point at non closed files preventing deletes I suppose. But I don't know where that comes from.
For the hard link error, I have bee seeing errors like that in the unit tests lately too, without really knowing the source yet. But I don't think that's related to the deletion failure.
> 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
> Priority: Minor
> 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
[jira] [Commented] (CASSANDRA-3642) Failed to delete any Index.db
on Windows
Posted by "Viktor Jevdokimov (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-3642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13178698#comment-13178698 ]
Viktor Jevdokimov commented on CASSANDRA-3642:
----------------------------------------------
We're now using standard disk access and sometimes Cassandra tends not to delete Data file, promising to do this after 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
> Priority: Minor
> 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