Closed achettyiitr closed 6 months ago
Thanks for raising this issue. We will look into a change.
In version 1.5.1 we are now wrapping the causative error in a bad connection error. You can use errors.Is/As to check for timeout, cancellation, etc.
Has the fix in 1.5.1 resolved this issue for you?
Issue: Getting driver bad connection, while calling Ping with
ContextWithTimeout
. Although, it's not reproducible. There is some edge case happening when the cluster is starting and we are executing Query. Driver Version: v1.1.0 Expectation: To return the error instead of DriverBadConnection.