Skip to content

Conversation

@rolznz
Copy link
Contributor

@rolznz rolznz commented Mar 25, 2025

Alternative to #1194

@rdmitr
Copy link
Collaborator

rdmitr commented Mar 25, 2025

5 seconds may be a bit too generous (i.e. it will slow down the tests quite a bit) but looks good otherwise. The solution seems to be the same as the one in PR 1194, right?

@rolznz
Copy link
Contributor Author

rolznz commented Mar 25, 2025

@rdmitr yeah, the actual fix in the transactions service is the same, just the tests are different in this PR.

I've reduced the delay to 1s and confirmed it still fails without the locks.

@rolznz rolznz merged commit 150d7bc into master Mar 25, 2025
10 of 11 checks passed
@rolznz rolznz deleted the fix/postgres-pay-race-condition branch March 25, 2025 10:31
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