JDBC connection hangs indefinitely during handshake when 'hosttimeout' expires

Details

Detail name Value
Changelog number 33111
Type Bug
Status Open
Affected versions Exasol 7.1.0
Fix versions Pending

Description

Under certain conditions, the JDBC driver may hang indefinitely while establishing a connection. The hosttimeout parameter is currently applied only to the initial socket connection. During the subsequent handshake, socket reads use an indefinite timeout.

If the socket is silently broken during the handshake, the driver waits indefinitely for a response from the server.

Workaround

There is no workaround.

Fix

A new connection parameter, connecttimeout, controls the timeout for the initial handshake. If the handshake takes longer than the configured timeout, the connection attempt is aborted and the driver tries the next host, if available. The default is 60,000 milliseconds (60 seconds), preventing the connection from hanging indefinitely.