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

java/security/cert/CertPathValidator/OCSP/GetAndPostTests.java -- test server didn't start in timely manner

XMLWordPrintable

    • b22
    • x86_64
    • windows

        ----------System.out:(3/185)----------
        [MainThread]: nextUpdate set to Tue Mar 28 15:58:37 UTC 2023
        [MainThread]: Added entry for serial 17499003148595942464(CERT_STATUS_GOOD)
        [MainThread]: Received shutdown notification
        ----------System.err:(11/620)----------
        java.lang.RuntimeException: Server not ready
        at GetAndPostTests.main(GetAndPostTests.java:122)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
        at java.base/java.lang.Thread.run(Thread.java:1623)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: Server not ready
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Server not ready
        ----------rerun:(45/7007)*----------

        If looks like the server's main loop thread from the thread pool.submit in SimpleOCSPServer::start didn't get to run in time.

        the timeout is 5 seconds in the awaitServerReady, and it's a reasonable assumption that the server thread will have started by then, but on heavily loaded systems these types of intermittent failures seem to occur.

        Server logging is enabled in the test, and log output from server is not seen in test jtr file.

              mdonovan Matthew Donovan
              msheppar Mark Sheppard
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: