Skip to content

Add missing synchronization to cached vectors of known pages #8069

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
merged 2 commits into from
Apr 4, 2024

Conversation

dyemanov
Copy link
Member

@dyemanov dyemanov commented Apr 3, 2024

It fixes races (causing crashes) when vectors are accessed / reallocated under high concurrent load.
The original patch is implemented by Vlad Khorsun. Slightly optimized and stress-tested by myself.

@dyemanov dyemanov merged commit a6bf341 into master Apr 4, 2024
@dyemanov dyemanov deleted the page-vector-sync branch April 4, 2024 14:54
hvlad added a commit that referenced this pull request May 27, 2024
Note, sequence numbers could be out of physical order of records.
hvlad pushed a commit that referenced this pull request Aug 27, 2024
hvlad pushed a commit that referenced this pull request Aug 27, 2024
dyemanov added a commit that referenced this pull request Nov 16, 2024
* Add missing synchronization to cached vectors of known pages. Thanks to Vlad Khorsun.

* Fixed typo
dyemanov pushed a commit that referenced this pull request Nov 16, 2024
Note, sequence numbers could be out of physical order of records.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants