GODRIVER-3298 Handle joined errors correctly in WithTransaction.#1928
Merged
matthewdale merged 1 commit intomongodb:masterfrom Feb 6, 2025
Merged
Conversation
Contributor
API Change ReportNo changes found! |
qingyang-hu
approved these changes
Feb 5, 2025
Contributor
Author
|
drivers-pr-bot please backport to release/2.0 |
Contributor
Author
|
drivers-pr-bot please backport to release/1.17 |
mongodb-drivers-pr-bot Bot
pushed a commit
that referenced
this pull request
Feb 6, 2025
(cherry picked from commit f99da4d)
matthewdale
added a commit
that referenced
this pull request
Feb 14, 2025
…) [release/2.0] (#1931) Co-authored-by: Matt Dale <9760375+matthewdale@users.noreply.github.com>
alcaeus
added a commit
that referenced
this pull request
Mar 4, 2025
* release/2.0: BUMP v2.0.1 GODRIVER-3477 Bump golang.org/x/crypto from 0.29.0 to 0.31.0 [release/2.0] (#1952) GODRIVER-3284 Allow valid SRV hostnames with less than 3 parts. (#1898) [release/2.0] (#1949) GODRIVER-3452 MergeClientOptions returns object when given nil arguments (#1917) [release/2.0] (#1948) GODRIVER-3443 Remove internal APIs in migration guide. (#1911) [release/2.0] (#1951) GODRIVER-3470 Correct BSON unmarshaling logic for null values (#1924) [master] (#1945) [release/2.0] (#1947) Fix erroneous nil error return in FindOne. (#1926) [release/2.0] (#1944) GODRIVER-3298 Handle joined errors correctly in WithTransaction. (#1928) [release/2.0] (#1931) GODRIVER-3307 clone returned byte slice in MarshalValue (#1913) [release/2.0] (#1921)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GODRIVER-3298
Summary
errors.Asto check for retryability of errors returned from theWithTransactioncallback.Background & Motivation
Currently
WithTransactionuses custom error unwrapping logic to check if an error returned by the callback should be retried. That unwrapping logic was not updated when support for join-able errors was added to the Go stdlib. Instead of maintaining custom error unwrapping logic, useerrors.Asto make sure the code continues to support future stdlib updates.