Skip to content

Fix ActiveRecord::ReadOnlyError with Active Record 8.1 - #13

Merged
abicky merged 2 commits into
masterfrom
fix-read-only-error-with-activerecord-8.1
Aug 16, 2026
Merged

Fix ActiveRecord::ReadOnlyError with Active Record 8.1#13
abicky merged 2 commits into
masterfrom
fix-read-only-error-with-activerecord-8.1

Conversation

@abicky

Copy link
Copy Markdown
Owner

This uses a dedicated connection role for the low-privilege MySQL user instead of the reading role. The deadlock test needs to execute SELECT ... FOR UPDATE, which Active Record 8.1 rejects for connections
configured as the reading role.

Active Record 8.1 prevents pessimistic locking while using the reading role: rails/rails#54580

This uses a dedicated connection role for the low-privilege MySQL user
instead of the reading role. The deadlock test needs to execute SELECT
... FOR UPDATE, which Active Record 8.1 rejects for connections
configured as the reading role.
Active Record 8.1 prevents pessimistic locking while using the reading
role: rails/rails#54580
@abicky
abicky merged commit 76535d6 into masterAug 16, 2026
56 checks passed
Sign up for freeto 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.

1 participant

@abicky