[
https://issues.apache.org/jira/browse/CASSANDRA-4050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13940941#comment-13940941
]
Joshua McKenzie commented on CASSANDRA-4050:
--------------------------------------------
Makes sense - it would require pushing some things pretty far back in the stack
to hold a ref on a memory mapped segment on the read path.
If we're thinking 3.X release for removing mmap I can throw a workaround on
this ticket to always return a BufferedPoolingSegmentedFile from
SegmentedFile's getBuilder if the platform is Windows. That + nio.2 should get
us working snapshots and less weird file handle behaviors on Windows in 2.0.X
without having to wait on clean-up of the old mmap code.
> 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.2#6252)