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

24-1: Fix a race between mediator state and pipeline restoring active transactions #3378

Merged

Conversation

snaury
Copy link
Member

@snaury snaury commented Apr 2, 2024

Changelog entry

Fix a race between mediator state and pipeline restoring active transactions

Changelog category

  • Bugfix

Additional information

An extremely rare failure was observed under Jepsen, where a debug build would crash, because it detected an invariant violation of a transaction marked as blocking immediate ops, but not present in complete/incomplete sets. The root cause turned out to be updating the current "unprotected read edge" when mediator state is restored, without also marking currently active transactions as complete (or incomplete). When more transactions activate, they assume current complete/incomplete sets are consistent, which turned out not to be the case. This could theoretically cause consistency issues, but those issues have never been observed so far.

Merges #3358.
Fixes #3142.

@snaury snaury self-assigned this Apr 2, 2024
Copy link

github-actions bot commented Apr 2, 2024

2024-04-02 11:10:11 UTC Pre-commit check for e62f934 has started.
2024-04-02 11:10:13 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-04-02 11:15:28 UTC Build successful.
2024-04-02 11:15:44 UTC Tests are running...
🟢 2024-04-02 12:27:33 UTC Tests successful.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
60279 50881 0 0 9340 58

Copy link

github-actions bot commented Apr 2, 2024

2024-04-02 11:10:20 UTC Pre-commit check for e62f934 has started.
2024-04-02 11:10:23 UTC Build linux-x86_64-release-asan is running...
🟢 2024-04-02 11:15:29 UTC Build successful.
2024-04-02 11:15:45 UTC Tests are running...
🔴 2024-04-02 12:51:01 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
16061 15955 0 15 53 38

@snaury snaury marked this pull request as ready for review April 2, 2024 14:59
@snaury snaury requested a review from a team as a code owner April 2, 2024 14:59
@snaury snaury enabled auto-merge (squash) April 8, 2024 08:44
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