-
Notifications
You must be signed in to change notification settings - Fork 21
DOCSP-44627: Add retry information #132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for docs-rust ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, left 1 comment
source/fundamentals/transactions.txt
Outdated
- | Runs the given callback, then commits or ends the transaction. When you | ||
use this method to perform a transaction, the driver automatically | ||
- | Runs the given callback, then commits or ends the transaction. If | ||
the callback raises a transient transaction error, the driver retries |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S: Maybe something to indicate the specific error type here, like
the callback raises a transient transaction error, the driver retries | |
the callback raises an error that includes a ``TRANSIENT_TRANSACTION_ERROR`` label, the driver retries |
source/fundamentals/transactions.txt
Outdated
use this method to perform a transaction, the driver automatically | ||
handles any errors, so you can choose to omit error handling code. | ||
- | Runs the given callback, then commits or ends the transaction. If | ||
the callback raises an error with a ``TRANSIENT_TRANSACTION_ERROR`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will also retry if committing the transaction returns a transient error.
(cherry picked from commit 8f48bf7)
(cherry picked from commit 8f48bf7)
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-44627
Staging - https://deploy-preview-132--docs-rust.netlify.app/fundamentals/transactions/#methods
Self-Review Checklist