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

[4.0 -> main] Cleanup and prevent thread starvation while in the read window. #904

Merged
merged 24 commits into from
Mar 27, 2023

Conversation

greg7mdp
Copy link
Contributor

Resolves #822.

This PR encapsulate wait and lock operations in the ro transaction queue, and makes the tasks wait on a condition variable while the read window is active, and there are transactions either in the queue or being processed.

It addresses the issue of thread starvation described in issue #822.

@greg7mdp greg7mdp requested review from heifner and linh2931 March 27, 2023 14:14
@greg7mdp greg7mdp merged commit 09c6af1 into main Mar 27, 2023
@greg7mdp greg7mdp deleted the gh_822_main branch March 27, 2023 18:31
heifner added a commit that referenced this pull request Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Read-only transaction processing - prevent thread starvation while in the read window.
3 participants