Skip to content
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

fix race condition in test case leading to sporadic fails #5765

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

Connum
Copy link
Contributor

@Connum Connum commented Mar 12, 2024

This PR contains:

  • IMPROVED TESTSs

Describe the problem you have without this PR

The reason for the stability test "many writes while replication" sporadically failing was actually a race condition in the test itself.
Sometimes the fork instance was written to first, which then lead to a write conflict. This could theoretically happen with any storage adapter, but those less performant (which loki and denokv seem to be) were more prone to hit that case.

By using promiseSeries(), it's now made sure that the master instance is written to first.

@Connum Connum force-pushed the fix/testcase-race branch from 82b42b9 to 32a25f1 Compare March 12, 2024 10:36
@pubkey pubkey merged commit c2155e5 into pubkey:master Mar 12, 2024
20 of 21 checks passed
pubkey added a commit that referenced this pull request Mar 12, 2024
@Connum Connum deleted the fix/testcase-race branch March 12, 2024 12:55
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.

2 participants