Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-4828

oak-ugrade tests fail with segment tar 0.0.12 (on Windows)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.10
    • 1.5.12, 1.6.0
    • segment-tar
    • 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)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              reschke Julian Reschke
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: