scylladb / gocql

Package gocql implements a fast and robust ScyllaDB client for the Go programming language.
https://docs.scylladb.com/stable/using-scylla/drivers/cql-drivers/scylla-go-driver.html
BSD 3-Clause "New" or "Revised" License
181 stars 57 forks source link

HostSelectionPolicy: add Reset method, Session.Close: call HostSelect… #166

Closed moguchev closed 3 months ago

moguchev commented 5 months ago

I'm not entirely sure this is even the right idea but in some cases panic in our application (shared policy) caused us inconvenience. In my opinion if one session is closed, another session can start working with host policy (because the condition is fulfilled that there is only one session working with token aware host policy).

I propose to consider this request)

sylwiaszunejko commented 3 months ago

@moguchev pls rebase on master

moguchev commented 3 months ago

Okay

sylwiaszunejko commented 3 months ago

@moguchev ping

moguchev commented 3 months ago

done

sylwiaszunejko commented 3 months ago

@moguchev thank you for your contributions