Skip to content

feat: retry transactions using withTransaction - #4612

Closed
DanRibbens wants to merge 15 commits into
mainfrom
feat/mongodb-retry-transactions
Closed

DanRibbens wants to merge 15 commits into
mainfrom
feat/mongodb-retry-transactions

Conversation

@DanRibbens

@DanRibbens DanRibbens commented Dec 26, 2023 •

Copy link
Copy Markdown
Contributor

Description

Changing to withTransaction instead of calling beginTransaction and start/rollback directly. This is a documented way to retry failing database operations to reduce errors from being unable to attain locks.

Related:
#4160
#4133
#4350
#4273

  • I have read and understand the CONTRIBUTING.md document in this repository.

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • I have added tests that prove my fix is effective or that my feature works
  • Existing test suite passes locally with my changes
  • I have made corresponding changes to the documentation

@DanRibbens DanRibbens changed the title feat(db-mongodb): WIP retry transactions using withTransaction feat(db-mongodb): retry transactions using withTransaction Dec 27, 2023
@DanRibbens DanRibbens changed the title feat(db-mongodb): retry transactions using withTransaction feat: retry transactions using withTransaction Dec 27, 2023
@denolfe

denolfe commented Apr 2, 2024

Copy link
Copy Markdown
Member

Any update on getting this merged @DanRibbens ?

@DanRibbens

Copy link
Copy Markdown
Contributor Author

I don't think this fix worked as I expected when I packaged it up and tried it in repos that could reproduce this issue. The PR should probably be closed until we can revisit it. However, I don't want to delete this branch yet so I've kept it open.

@DanRibbens DanRibbens closed this Jul 29, 2024
@jmikrut
jmikrut deleted the feat/mongodb-retry-transactions branch December 20, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants