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

java/util/logging/CheckZombieLockTest.java failing intermittently

XMLWordPrintable

        This test is failing frequently in the loom repo, both with and without the jtreg main wrapper. The typical output is:

        ----------System.out:(24/1324)----------
        Writable dir is: /testoutput/test-support/jtreg_open_test_jdk_jdk_util/tmp/writable-lockfile-dir
        before: 0 locks found
        handler created: java.util.logging.FileHandler@50bbb838
        Found file: log.log.lck
        Found file: log.log
        after creating handler: 1 locks found
        Found file: log.log
        after closing handler: 0 locks found
        Found file: log.log
        Found file: log.log.lck
        before: 1 locks found
        handler created: java.util.logging.FileHandler@1615f0bf
        Found file: log.log
        Found file: log.log.lck
        after creating handler: 1 locks found
        handler closed: java.util.logging.FileHandler@1615f0bf
        Found file: log.log
        after closing handler: 0 locks found
        locked: /testoutput/test-support/jtreg_open_test_jdk_jdk_util/tmp/writable-lockfile-dir/log.log.lck
        handler created: java.util.logging.FileHandler@fe2e7ec
        Found file: log.log
        Found file: log.log.lck
        after creating handler: 1 locks found
        end: 0 locks found
        ----------System.err:(16/2176)----------
        WARNING: unable to delete/cleanup writable test directory: /testoutput/test-support/jtreg_open_test_jdk_jdk_util/tmp/writable-lockfile-dir
        java.lang.RuntimeException: Unexpected lock files found: []
        /testoutput/test-support/jtreg_open_test_jdk_jdk_util/tmp/writable-lockfile-dir/log.log.lck should not have been reused
        at CheckZombieLockTest.testFileHandlerReuse(CheckZombieLockTest.java:257)
        at CheckZombieLockTest.runTests(CheckZombieLockTest.java:105)
        at CheckZombieLockTest.main(CheckZombieLockTest.java:78)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:1532)

              dfuchs Daniel Fuchs
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: