[
https://issues.apache.org/jira/browse/OAK-4719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15448370#comment-15448370
]
Francesco Mari commented on OAK-4719:
-------------------------------------
Thanks for pointing it out. The current implementation of {{FileReaper}} is
different only with regard to the existence check. This behaviour can be
restored by using {{Files.deleteIfExists()}} instead of {{Files.delete()}}. If
a file can't be deleted and an {{IOException}} is thrown, the implementation
will try to delete it later in a successive call to {{reap()}}.
> Marked files are not removed if compaction fails
> ------------------------------------------------
>
> Key: OAK-4719
> URL: https://issues.apache.org/jira/browse/OAK-4719
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: segment-tar
> Reporter: Francesco Mari
> Assignee: Francesco Mari
> Fix For: Segment Tar 0.0.12
>
>
> If compaction fails after the configured number of attempts, {{cleanup()}} is
> called to remove TAR files that might contain garbage generated during the
> compaction attempt. The files returned by this call are ignored, thus
> preventing this garbage from being removed from the system.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)