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

Joshua McKenzie resolved CASSANDRA-10673.
-----------------------------------------
    Resolution: Won't Fix

Cassandra 2.1 is considered beta on Windows, and we still have some latent 
problems w/file access that could not reasonably be fixed until the nio rewrite 
in 2.2. Please run the 2.2 DCE and let us know if you have problems with 
Windows on that release.

> The process cannot access the file because it is being used by another process
> ------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-10673
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10673
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: DataStax Community 2.1.11, Windows 2008 R2, Java 
> HotSpot(TM) 64-Bit Server VM/1.8.0_65
>            Reporter: Kai Wang
>
> {noformat}
> org.apache.cassandra.io.FSWriteError: java.nio.file.FileSystemException: 
> d:\cassandra\data\aaa\bbb-436f21f0855111e58e1c6972136b9cc3\snapshots\2fe843e0-85d4-11e5-ae1a-ef38ce02f3df\aaa-bbb-ka-3073-Index.db:
>  The process cannot access the file because it is being used by another 
> process.
>       at 
> org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:135) 
> ~[apache-cassandra-2.1.11.jar:2.1.11]
>       at 
> org.apache.cassandra.io.util.FileUtils.deleteRecursive(FileUtils.java:381) 
> ~[apache-cassandra-2.1.11.jar:2.1.11]
>       at 
> org.apache.cassandra.io.util.FileUtils.deleteRecursive(FileUtils.java:377) 
> ~[apache-cassandra-2.1.11.jar:2.1.11]
>       at 
> org.apache.cassandra.db.Directories.clearSnapshot(Directories.java:647) 
> ~[apache-cassandra-2.1.11.jar:2.1.11]
>       at 
> org.apache.cassandra.db.ColumnFamilyStore.clearSnapshot(ColumnFamilyStore.java:2451)
>  ~[apache-cassandra-2.1.11.jar:2.1.11]
>       at 
> org.apache.cassandra.db.compaction.CompactionManager.doValidationCompaction(CompactionManager.java:1018)
>  ~[apache-cassandra-2.1.11.jar:2.1.11]
>       at 
> org.apache.cassandra.db.compaction.CompactionManager.access$600(CompactionManager.java:94)
>  ~[apache-cassandra-2.1.11.jar:2.1.11]
>       at 
> org.apache.cassandra.db.compaction.CompactionManager$9.call(CompactionManager.java:622)
>  ~[apache-cassandra-2.1.11.jar:2.1.11]
>       at java.util.concurrent.FutureTask.run(Unknown Source) ~[na:1.8.0_65]
>       at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
> [na:1.8.0_65]
>       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
> [na:1.8.0_65]
>       at java.lang.Thread.run(Unknown Source) [na:1.8.0_65]
> Caused by: java.nio.file.FileSystemException: 
> d:\cassandra\data\aaa\bbb-436f21f0855111e58e1c6972136b9cc3\snapshots\2fe843e0-85d4-11e5-ae1a-ef38ce02f3df\aaa-bbbb-ka-3073-Index.db:
>  The process cannot access the file because it is being used by another 
> process.
>       at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) 
> ~[na:1.8.0_65]
>       at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) 
> ~[na:1.8.0_65]
>       at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) 
> ~[na:1.8.0_65]
>       at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) 
> ~[na:1.8.0_65]
>       at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source) 
> ~[na:1.8.0_65]
>       at java.nio.file.Files.delete(Unknown Source) ~[na:1.8.0_65]
>       at 
> org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:131) 
> ~[apache-cassandra-2.1.11.jar:2.1.11]
>       ... 11 common frames omitted
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to