-
Type: Improvement
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
Go Drivers
-
Not Needed
-
Detailed steps to reproduce the problem?
We can rely on the Topology being disconnected to return ErrClientDisconnected, rather than checking sessionPool is nullfied. This is legacy code to prevent calls from panicking when using NewClient, which has been removed in 2.0.
This is a breaking change since it will change the behavior of StartSession, which will no longer return ErrClientDisconnected when called after the client has been disconnected.
Definition of done: what must be done to consider the task complete?
Remove all sessionPool == nil behavior from mongo/client.go. This will require updating this line to use `Connect` instead of newClient. It will also require removing various tests that expect the ErrClientDisconnected error
- related to
-
GODRIVER-2529 Return error if a ClientEncryption is used after Close
- Closed