Skip to content

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

Merged
merged 5 commits into from
Oct 28, 2024

Conversation

norareidy
Copy link
Collaborator

@norareidy norareidy commented Oct 23, 2024

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

  • Is this free of any warnings or errors in the RST?
  • Did you run a spell-check?
  • Did you run a grammar-check?
  • Are all the links working?
  • Are the facets and meta keywords accurate?

Copy link

netlify bot commented Oct 23, 2024

Deploy Preview for docs-rust ready!

Name Link
🔨 Latest commit b10f8a5
🔍 Latest deploy log https://app.netlify.com/sites/docs-rust/deploys/671bf421cad1400008d054cf
😎 Deploy Preview https://deploy-preview-132--docs-rust.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@mayaraman19 mayaraman19 left a 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

- | 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
Copy link
Collaborator

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

Suggested change
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

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``
Copy link
Collaborator

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.

@norareidy norareidy requested a review from abr-egn October 25, 2024 19:40
@norareidy norareidy merged commit 8f48bf7 into mongodb:master Oct 28, 2024
5 checks passed
@norareidy norareidy deleted the DOCSP-44627-retries branch October 28, 2024 14:19
norareidy added a commit that referenced this pull request Oct 28, 2024
norareidy added a commit that referenced this pull request Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants