scylladb / java-driver

ScyllaDB Java Driver for ScyllaDB and Apache Cassandra, based on the DataStax Java Driver
Apache License 2.0
63 stars 37 forks source link

fix: 4.x can't connect to the cluster when first node is non responsive #357

Open dkropachev opened 1 month ago

dkropachev commented 1 month ago

Closes #356

Since netty bootstrap.connect uses only first address of unresolved InetSocketAddress 4.x does not even try to connect to other when it fails. This PR makes driver resolve unresolved endpoint itself and only then handing it over bootstrap.connect