Skip to content

24-1: Fix read iterator local snapshot consistency. Fixes #2885. #3074

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

Merged

Conversation

snaury
Copy link
Member

@snaury snaury commented Mar 22, 2024

Changelog entry

  • Fix read iterator local snapshot consistency.

Changelog category

  • Bugfix

Additional information

A very rare failure was detected with Jepsen, where an immediate (but locally upgraded to repeatable) read caused dependency confusion between concurrent writes, making it possible to commit writes to the same key in the reverse mvcc version order. Additional issues have been identified, which made it possible for local snapshot reads to violate repeatable read guarantees, those have also been fixed with corresponding regression tests.

Fixes #2885.
Merges #3037.

Copy link

github-actions bot commented Mar 22, 2024

2024-03-22 08:43:16 UTC Pre-commit check for c3cd087 has started.
2024-03-22 08:43:19 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-03-22 08:48:54 UTC Build successful.
2024-03-22 08:49:08 UTC Tests are running...
🟢 2024-03-22 10:01:46 UTC Tests successful.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
60380 50954 0 0 9340 86

Copy link

github-actions bot commented Mar 22, 2024

2024-03-22 08:43:16 UTC Pre-commit check for c3cd087 has started.
2024-03-22 08:43:19 UTC Build linux-x86_64-release-asan is running...
🟢 2024-03-22 08:48:47 UTC Build successful.
2024-03-22 08:48:59 UTC Tests are running...
🔴 2024-03-22 10:21:22 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
16058 15971 0 18 44 25

@snaury snaury changed the title Fix read iterator local snapshot consistency. Fixes #2885. 24-1: Fix read iterator local snapshot consistency. Fixes #2885. Mar 22, 2024
@snaury snaury marked this pull request as ready for review March 22, 2024 09:18
@snaury snaury requested a review from a team as a code owner March 22, 2024 09:18
@snaury snaury self-assigned this Mar 22, 2024
@snaury snaury merged commit 112be1a into ydb-platform:stable-24-1 Mar 22, 2024
3 of 4 checks passed
@snaury snaury deleted the fix-2885-read-and-plan-queue-race-24-1 branch March 22, 2024 10:36
@mregrock mregrock mentioned this pull request May 15, 2024
This was referenced Jun 7, 2024
@CyberROFL CyberROFL mentioned this pull request Jun 19, 2024
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