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

Tomek Rękawek commented on OAK-4828:
------------------------------------

>From what I saw, if you use MMAPed FileStore on Windows, the files are not 
>released even though the FileStore is closed. That's the reason of exception.

In [r1763502|https://svn.apache.org/r1763502] I'm using a custom version of 
deleteRecursively that doesn't throw exception but logs the error IO cause (so 
the segment tar version can be bumped).

The root cause is worth investigating anyway. Reproduction steps:

a) create FileStore with MMAP enabled,
b) close FileStore
c) remove repository directory D
d) check if the directory D exists

On Windows either c) or d) fails.

> oak-ugrade tests fail with segment tar 0.0.12 (on Windows)
> ----------------------------------------------------------
>
>                 Key: OAK-4828
>                 URL: https://issues.apache.org/jira/browse/OAK-4828
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segment-tar
>    Affects Versions: 1.5.10
>            Reporter: Julian Reschke
>             Fix For: Segment Tar 0.0.16
>
>
> When the dependency for segment tar is changed from 0.0.10 to 0.0.12 (see 
> OAK-4823), test cases fail due to files being open and thus not deleted on 
> Windows:
> {noformat}
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.781 sec <<< 
> FAILURE!
> upgradeFrom10(org.apache.jackrabbit.oak.upgrade.UpgradeOldSegmentTest)  Time 
> elapsed: 0.781 sec  <<< ERROR!
> java.io.IOException: Unable to delete file: 
> target\UpgradeOldSegmentTest\test-repo-new\segmentstore\data00000a.tar
>         at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2279)
>         at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
>         at 
> org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
>         at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270)
>         at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
>         at 
> org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
>         at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270)
>         at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
>         at 
> org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
>         at 
> org.apache.jackrabbit.oak.upgrade.UpgradeOldSegmentTest.upgradeFrom10(UpgradeOldSegmentTest.java:119)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to