[
https://issues.apache.org/jira/browse/CASSANDRA-2468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028167#comment-13028167
]
Aaron Morton commented on CASSANDRA-2468:
-----------------------------------------
The check to delete the non temp files was to cover the unlikely event that
rename() threw an IOError part way through renaming the files. I thought about
potentially deleting the wrong files but nothing else see the non temp files
until the SSTR is returned.
Happy to make the change tomorrow if you still want, it makes things a little
safer.
> Clean up after failed compaction
> --------------------------------
>
> Key: CASSANDRA-2468
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2468
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Aaron Morton
> Priority: Minor
> Fix For: 0.7.6, 0.8.1
>
> Attachments:
> 0001-clean-up-temp-files-after-failed-compaction-v08.patch,
> 0001-cleanup-temp-files-after-compaction-v07.patch
>
>
> (Started in CASSANDRA-2088.)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira