You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Alexander Kashirin (JIRA)" <ji...@apache.org> on 2012/10/06 01:02:02 UTC

[jira] [Commented] (CASSANDRA-4050) cassandra unnecessarily holds file locks on snapshot files

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

Alexander Kashirin commented on CASSANDRA-4050:
-----------------------------------------------

I have the same problem with Cassandra 1.1.5 on Windows 7 and Windows Server 2008 R2:

The nodetool stably creates snapshots that can't be deleted by the "clearsnapshot" command later (- IOException: Failed to delete ...). The bare facts are below.
 
For some (not for all) snapshot files (= hard links):
 
1) WinExplorer->Delete says "The process cannot access the file because it is being used by another process".
2) Command interpreter writes "Access denied" on "del" command.
3) Troubleshooting tools (- "Process Explorer" and "Unlocker") do not find open file handles. Moreover, Unlocker is able to delete these files without problems.
4) The files become deletable by the rest tools just after Cassandra-server has been stopped.
5) After restart, the same files become locked again.
6) Everything repeats after computer has been restarted.



                
> cassandra unnecessarily holds file locks on snapshot files
> ----------------------------------------------------------
>
>                 Key: CASSANDRA-4050
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4050
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.0.8
>         Environment: Windows 7
>            Reporter: Jim Newsham
>            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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira