You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If loginTimeout is less than connectTimeout * numberOfHosts, then the connect operation might fail in case the first attempted replicas take a lot of time to connect.
The error message could probably include "attempted these hosts: ..., skipped hosts ... due to loginTimeout=... reached. Consider increasing loginTimeout or decreasing connectTimeout".
The text was updated successfully, but these errors were encountered:
vlsi
changed the title
Add more information to "connect timeout" errors: include hosts attempted, timeout values
Add more information to "connect timeout" errors: include hosts attempted, hosts skipped, timeout values
Apr 5, 2024
There is a local variable knownStates in openConnectionImpl we can calculate the attemptedHosts from here. But its a local variable.
If we can propagate this from ConnectionFactoryImpl.java to Driver.java we can have some more info for the error message.
If
loginTimeout
is less thanconnectTimeout * numberOfHosts
, then the connect operation might fail in case the first attempted replicas take a lot of time to connect.The error message could probably include "attempted these hosts: ..., skipped hosts ... due to loginTimeout=... reached. Consider increasing loginTimeout or decreasing connectTimeout".
The text was updated successfully, but these errors were encountered: