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 missing locks on read iterator empty result elision. Fixes #2765. #2825

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

snaury
Copy link
Member

@snaury snaury commented Mar 15, 2024

Changelog entry

Fix missing locks on read iterator empty result elision.

Changelog category

  • Bugfix

Additional information

Jepsen showed incompatible-order failures when batching multiple operations into a single query. This was tracked to a read iterator improvement, where it tries to avoid repeating work on page faults by continuing in a new localdb transaction from the last observed key. Since it may produce internal continuations with empty intermediate results those are elided as "not useful". Unfortunately, in some cases, those results may contain information about acquired locks, which need to be passed to kqp. As a result of incorrect empty result elision transactions failed to detect serialization conflicts with other transactions, and successfully committed.

@snaury snaury requested a review from azevaykin March 15, 2024 14:04
@snaury snaury marked this pull request as ready for review March 15, 2024 14:04
@snaury snaury self-assigned this Mar 15, 2024
Copy link

github-actions bot commented Mar 15, 2024

2024-03-15 14:07:51 UTC Pre-commit check for 5fb9cb9 has started.
2024-03-15 14:07:53 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-03-15 14:10:24 UTC Build successful.
2024-03-15 14:10:34 UTC Tests are running...
🟢 2024-03-15 15:28:17 UTC Tests successful.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
68379 57427 0 0 10930 22

Copy link

github-actions bot commented Mar 15, 2024

2024-03-15 14:12:55 UTC Pre-commit check for 5fb9cb9 has started.
2024-03-15 14:12:57 UTC Build linux-x86_64-release-asan is running...
🟢 2024-03-15 14:15:36 UTC Build successful.
2024-03-15 14:15:45 UTC Tests are running...
🔴 2024-03-15 16:09:26 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
15071 14493 0 75 473 30

Copy link

github-actions bot commented Mar 15, 2024

2024-03-15 14:17:26 UTC Pre-commit check for 5fb9cb9 has started.
2024-03-15 14:17:27 UTC Build linux-x86_64-release-cmake14 is running...
🟢 2024-03-15 14:21:23 UTC Build successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants