Repository navigation
fix: Wait for transaction to complete on commit - #4582
Merged
DanRibbens merged 2 commits intoDec 21, 2023
Merged
Conversation
joas8211
requested review from
DanRibbens,
denolfe and
jmikrut
as code owners
December 21, 2023 13:02
Contributor
Author
|
I feel like current tests cover the bug already quite well, so I didn't add any tests. Especially tests in For me running unit tests locally with Postgres, amount of failed tests dropped dramatically:
The one test that still sometimes fail is |
Contributor
|
I think what you are saying and that your commit makes sense at first glance. I am going to re-run the postgres test suite to get more verification. In the past it had been failing about 50% of the time, likely for this reason. |
DanRibbens
approved these changes
Dec 21, 2023
JessRynkar
pushed a commit
that referenced
this pull request
Jan 2, 2024
* fix(db-postgres): Wait for transaction to complete on commit * fix session types
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.
Description
Currently transactions are committed asynchronously and are not awaited. That causes problems at least with in-series local API calls that are supposed to commit transactions (do not provide transaction ID) but end up completing commit too late.
Fixes #4581
Type of change
Checklist: