Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-20759

Tcp handshake in communication spi hangs on JDK 12 and later

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.15
    • 2.16
    • None
    • Fixed writing post-handshake message in NIO server
    • Release Notes Required

    Description

      This issue is reproduced in GridTcpCommunicationSpiSslSelfTest. All tests hangs during tcp handshake process in infinite loop in org.apache.ignite.spi.communication.tcp.internal.TcpHandshakeExecutor#tcpHandshake. Seems that fixes in IGNITE-16622 are not enough

      The main reason of this behaviour – https://bugs.openjdk.org/browse/JDK-8277307. Post handshake message seems to be too large for being written in one step, but we don't try to resend the rest in org.apache.ignite.internal.util.nio.GridNioServer.DirectNioClientWorker#processWriteSsl since the ssl handshake is considered to be finished.

      WA – set -Djdk.tls.server.enableSessionTicketExtension=false

      Attachments

        Issue Links

          Activity

            People

              ivandasch Ivan Daschinsky
              ivandasch Ivan Daschinsky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m