Skip to content

fix(db-mongodb): ignore end session errors - #5904

Merged
DanRibbens merged 1 commit into
mainfrom
fix/catch-error-end-session
Apr 17, 2024
Merged

DanRibbens merged 1 commit into
mainfrom
fix/catch-error-end-session

Conversation

@DanRibbens

Copy link
Copy Markdown
Contributor

Description

It is possible to have a race condition if a hook calls commitTransaction and then payload's own operation calls the same. This is only a problem because of the multiple awaits in commitTransaction. This will make it so any failing endSession calls for this or any other reason get swallowed.

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.

1 participant