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

[TEST_BUG] sun/security/ssl/SSLSocketImpl/CloseSocket.java failed with "Error while cleaning up threads after test"

    Details

      Backports

        Description

        This has been observed once on Mac OSX.
        Probably there are threads left during test exit
         
        ----------System.out:(7/484)----------
        Client established TCP connection
        Starting handshake...
        Failed as expected: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
        Trying read...
        Failed as expected: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
        Trying read...
        Failed as expected: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
        ----------System.err:(3/36)----------

        JavaTest Message: Test complete.

        result: Error. Error while cleaning up threads after test

          Issue Links

            Activity

            Hide
            asmotrak Artem Smotrakov added a comment -
            What does "Error while cleaning up threads after test" message mean? Does jtreg try to do something with test threads?
            Show
            asmotrak Artem Smotrakov added a comment - What does "Error while cleaning up threads after test" message mean? Does jtreg try to do something with test threads?
            Hide
            xiaofeya Felix Yang added a comment -
            I suppose the test runs in agentvm mode. The failure may happen when jtreg try to "clean up" (interrupt?) threads after test run. Run with othervm mode may help but it would be better to understand what threads were left.
            Show
            xiaofeya Felix Yang added a comment - I suppose the test runs in agentvm mode. The failure may happen when jtreg try to "clean up" (interrupt?) threads after test run. Run with othervm mode may help but it would be better to understand what threads were left.
            Hide
            asmotrak Artem Smotrakov added a comment -
            I am not sure what 'Error while cleaning up threads after test' error means. I suppose jtreg does something after the test finished. This 'something' seemed to fail. It would be good to figure out what happened, so that we could understand how to prevent such issues in future. Or, maybe there is a bug in jtreg. It also would be good to know how often it fails.
            Show
            asmotrak Artem Smotrakov added a comment - I am not sure what 'Error while cleaning up threads after test' error means. I suppose jtreg does something after the test finished. This 'something' seemed to fail. It would be good to figure out what happened, so that we could understand how to prevent such issues in future. Or, maybe there is a bug in jtreg. It also would be good to know how often it fails.
            Hide
            snikandrova Svetlana Nikandrova (Inactive) added a comment -
            Artem, this message means that jtreg failed to cleanup all threads after test execution. Please see jtreg code:
            http://hg.openjdk.java.net/code-tools/jtreg/file/19d9cd9f1789/src/share/classes/com/sun/javatest/regtest/agent/MainActionHelper.java#l276

            Long story short, for all alive and not daemon threads "interrupt" is called. If after 3 tries some threads are left - this error will be shown.
            Show
            snikandrova Svetlana Nikandrova (Inactive) added a comment - Artem, this message means that jtreg failed to cleanup all threads after test execution. Please see jtreg code: http://hg.openjdk.java.net/code-tools/jtreg/file/19d9cd9f1789/src/share/classes/com/sun/javatest/regtest/agent/MainActionHelper.java#l276 Long story short, for all alive and not daemon threads "interrupt" is called. If after 3 tries some threads are left - this error will be shown.
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/c5a832e62e0f
            User: asmotrak
            Date: 2016-08-29 18:00:52 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/c5a832e62e0f User: asmotrak Date: 2016-08-29 18:00:52 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/c5a832e62e0f
            User: lana
            Date: 2016-08-31 20:17:52 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/c5a832e62e0f User: lana Date: 2016-08-31 20:17:52 +0000

              People

              • Assignee:
                snikandrova Svetlana Nikandrova (Inactive)
                Reporter:
                xiaofeya Felix Yang
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: