Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5.10
-
None
Description
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:
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)