Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8322078

ZipSourceCache.testKeySourceMapping() test fails with The process cannot access the file because it is being used by another process

    XMLWordPrintable

Details

    Backports

      Description

        The ZipSourceCache.testKeySourceMapping() test was recently added for https://bugs.openjdk.org/browse/JDK-8317678. This test has been reported to fail on a windows-x64 instance in one of the GitHub actions job https://github.com/openjdk/jdk/pull/16115#issuecomment-1854702162.


        The exception stacktrace of the failure is:

        FAILED ZipSourceCache::testKeySourceMapping 'testKeySourceMapping()'
        java.nio.file.FileSystemException: 1702471080605-bug8317678.zip: The process cannot access the file because it is being used by another process
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
        at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:273)
        at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:109)
        at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
        at ZipSourceCache.cleanup(ZipSourceCache.java:65)

        Attachments

          Issue Links

            Activity

              People

                coffeys Sean Coffey
                jpai Jaikiran Pai
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: