java-driver icon indicating copy to clipboard operation
java-driver copied to clipboard

Add optional fallback for `ControlConnection#reconnect() `

Open Bouncheck opened this issue 1 year ago • 1 comments

Adds additional config option that changes behavior of ControlConnection's reconnection. In case LBP returns an empty query plan we will attempt to connect to the original endpoints regardless of their last observed status.

The option is by default disabled and driver without enabling it should keep behaving the same way as before. If enabled it should be possible to reconnect to the cluster if all endpoints containing hostnames were lost during normal operation and then cluster was replaced.

Bouncheck avatar Sep 10 '24 14:09 Bouncheck