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

two java.util tests failed with "IOException: There is not enough space on the disk"

    XMLWordPrintable

Details

    • b10
    • x86_64
    • windows

    Backports

      Description

        The following tests failed in the JDK17 CI:

        java/util/zip/ZipFile/Zip64SizeTest.java
        java/util/jar/JarFile/LargeManifestOOMTest.java

        Here's a snippet from the Zip64SizeTest.java log file:

        ----------System.out:(45/2703)----------
        [TestNG] Running:
          java/util/zip/ZipFile/Zip64SizeTest.java

        config Zip64SizeTest.setUp(): success
        Creating LargeZipEntry.txt
        test Zip64SizeTest.validateZipEntrySizes(): failure
        java.io.IOException: There is not enough space on the disk
        at java.base/java.io.RandomAccessFile.setLength(Native Method)
        at Zip64SizeTest.createFiles(Zip64SizeTest.java:124)
        at Zip64SizeTest.validateZipEntrySizes(Zip64SizeTest.java:67)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
        at org.testng.TestRunner.privateRun(TestRunner.java:773)
        at org.testng.TestRunner.run(TestRunner.java:623)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
        at org.testng.SuiteRunner.run(SuiteRunner.java:259)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
        at org.testng.TestNG.run(TestNG.java:1018)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
        at java.base/java.lang.Thread.run(Thread.java:831)
        config Zip64SizeTest.tearDown(): success

        ===============================================
        java/util/zip/ZipFile/Zip64SizeTest.java
        Total tests run: 1, Failures: 1, Skips: 0
        ===============================================

        ----------System.err:(12/726)----------
        java.lang.Exception: failures: 1
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
        at java.base/java.lang.Thread.run(Thread.java:831)

        JavaTest Message: Test threw exception: java.lang.Exception
        JavaTest Message: shutting down test

        result: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 1


        Here's a snippet from the LargeManifestOOMTest.java log file:

        ----------System.out:(41/2539)----------
        [TestNG] Running:
          java/util/jar/JarFile/LargeManifestOOMTest.java

        test LargeManifestOOMTest.testOutOfMemoryError(): failure
        java.io.IOException: There is not enough space on the disk
        at java.base/java.io.RandomAccessFile.setLength(Native Method)
        at LargeManifestOOMTest.createLargeManifest(LargeManifestOOMTest.java:74)
        at LargeManifestOOMTest.testOutOfMemoryError(LargeManifestOOMTest.java:55)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
        at org.testng.TestRunner.privateRun(TestRunner.java:773)
        at org.testng.TestRunner.run(TestRunner.java:623)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
        at org.testng.SuiteRunner.run(SuiteRunner.java:259)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
        at org.testng.TestNG.run(TestNG.java:1018)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
        at jdk.internal.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
        at java.base/java.lang.Thread.run(Thread.java:831)

        ===============================================
        java/util/jar/JarFile/LargeManifestOOMTest.java
        Total tests run: 1, Failures: 1, Skips: 0
        ===============================================

        ----------System.err:(11/615)----------
        java.lang.Exception: failures: 1
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
        at jdk.internal.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
        at java.base/java.lang.Thread.run(Thread.java:831)

        JavaTest Message: Test threw exception: java.lang.Exception
        JavaTest Message: shutting down test

        result: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 1


        Here's a snippet from the test task's stdout:

        [2021-01-16T03:20:04,272Z][DEBUG][pool-3-thread-1][c.o.j.s.e.u.DiskProfiler] Several file stores with the same name:
        [2021-01-16T03:20:04,288Z][INFO][pool-3-thread-1][c.o.j.s.e.u.DiskProfiler] Available disk space before execution (T:): 6.9 GiB / 46.0 GiB (14.9%)

        The second line says there is 6.9GB available before the test
        setup started. I would think that's enough space for a test run,
        but I don't know these tests.

        This line from c.o.j.s.e.u.DiskProfiler is also interesting:

            Several file stores with the same name:

        and why is there nothing showing the names of the file stores?
        Could be nothing or could be the root cause? I don't know.

        Minimally, I think the tests should be updated with additional
        info about the file store's currently available space.

        Normally Tier1 failures would start as P2, but these two failures
        are very strange so I'm starting this at P3 so it can be evaluated
        by Core-Libs triage. After evaluation, I have no problem if it gets
        lowered to P4.

        Attachments

          Issue Links

            Activity

              People

                lancea Lance Andersen
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: