-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Go Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Detailed steps to reproduce the problem?
The specifications requires that
For exceptions that originate from the driver (e.g. no socket available from the connection pool), we should raise the previous error if there was one.
The Go Driver is not compliant, and is updating prevIndefiniteErr for timeout errors.
Definition of Done
Only track server errors in prevIndefiniteErr. Per the spec, only update previousError if the current error is not a DriverException, does not have NoWritesPerformed, and is not a CSOT timeout.
This is likely the fix: https://github.com/prestonvasquez/mongo-go-driver/commit/71bbdd126155bef0c957a6d7354301efb482fad1#diff-490a6369c25d838f3cbdcb7bec2c0f750b5319831509b0d7a1a53e0933245d24R611-R628
Ignore all non-highlighted changes in that commit.
Need to verify it's spec compliant w/ retryable-writes.md.
- related to
-
GODRIVER-3757 Clarify `NoWritesPerformed` error label behavior when multiple retries occur
-
- Backlog
-