[ 
https://issues.apache.org/jira/browse/CASSANDRA-4050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13912118#comment-13912118
 ] 

Joshua McKenzie commented on CASSANDRA-4050:
--------------------------------------------

There's been some discussion on CASSANDRA-6283 concerning this.  From the 
comments:

With our current io implementation on Windows, snapshots won't be deletable as 
long as the original sstable is locked. It's going to take a new FileDataInput 
based on FileChannel w/jdk7 using the FILE_SHARE_DELETE flag to allow deletion 
of hard links while the original file is open.

Bug with behavior: http://bugs.java.com/view_bug.do?bug_id=6607535
jdk7 support: 
http://www.docjar.com/html/api/sun/nio/fs/WindowsChannelFactory.java.html

> Unable to remove snapshot files on Windows while original sstables are live
> ---------------------------------------------------------------------------
>
>                 Key: CASSANDRA-4050
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4050
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: Windows 7
>            Reporter: Jim Newsham
>            Assignee: Joshua McKenzie
>            Priority: Minor
>
> I'm using Cassandra 1.0.8, on Windows 7.  When I take a snapshot of the 
> database, I find that I am unable to delete the snapshot directory (i.e., dir 
> named "{datadir}\{keyspacename}\snapshots\{snapshottag}") while Cassandra is 
> running:  "The action can't be completed because the folder or a file in it 
> is open in another program.  Close the folder or file and try again" [in 
> Windows Explorer].  If I terminate Cassandra, then I can delete the directory 
> with no problem.
> I expect to be able to move or delete the snapshotted files while Cassandra 
> is running, as this should not affect the runtime operation of Cassandra.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to