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

Revert to a commit that works for race conditions handling #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

gohkhoonhiang
Copy link
Collaborator

Background

Creating this PR to document why we reverted to this commit.

The addition from this commit broke race conditions handling.

Through a simple Rails app setup, it shows that introducing ActiveRecordPoolControl caused 2 instances of LoadInterlockAwareMonitor to be created, and cannot effectively synchronise multiple threads accessing the same DB rows.

To unblock our ruby3 upgrade, we will revert back to the commit that has worked before the introducing of the ActiveRecordPoolControl class.

Commits cherry-picked from upstream

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