Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-13216

Client should not close server connection after timeout

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 9.4.23.Final, 11.0.11.Final, 12.1.7.Final
    • Hot Rod
    • None

      The client configuration setting infinispan.client.hotrod.socket_timeout controls how long the client waits for a response from the server.

      Before switching to Netty, each operation had its own thread, so it was natural to close the connection after the timeout expired and hopefully save the server from sending a lot of data. But now that the client uses Netty, many other operations could be using the same server connection, and closing the channel will affect all of them:

      2021-06-21 19:06:13,612 [HotRod-client-event-loop-group-3] ERROR org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation - ISPN004007: Exception encountered. Retry 0 out of 0
      org.infinispan.client.hotrod.exceptions.TransportException: ISPN004071: Connection to server:11222 was closed while waiting for response.
      

              rh-ee-jbolina Jose Bolina
              dberinde@redhat.com Dan Berindei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: