Skip to content

Update dependency on sqlite3 gem to >= 2.1 - #53033

Merged
byroot merged 1 commit into
rails:mainfrom
flavorjones:flavorjones-hush-sqlite3-forksafety-warnings
Sep 25, 2024
Merged

byroot merged 1 commit into
rails:mainfrom
flavorjones:flavorjones-hush-sqlite3-forksafety-warnings

Conversation

@flavorjones

@flavorjones flavorjones commented Sep 24, 2024 •

Copy link
Copy Markdown
Member

Motivation / Background

Update the sqlite3 adapter's dependency on the sqlite3-ruby gem to v2.1.

This version contains protections against sqlite's lack of fork safety.

Also, suppress the warnings related to forking with open writable connections, despite the lost
memory per-connection.

Detail

  • Update the minimum allowed version of the sqlite3-ruby gem.
  • Suppress fork safety warnings from the gem.

Additional information

For more context, see https://github.com/sparklemotion/sqlite3-ruby/blob/main/adr/2024-09-fork-safety.md

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Unrelated changes should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]
  • [-] Tests are added or updated if you fix a bug or add a feature.
  • [-] CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature. Minor bug fixes and documentation changes should not be included.

This version contains protections against sqlite's lack of fork
safety. We also suppress the warnings related to forking with open
writable connections, despite the lost memory per-connection.

For more context, see:
https://github.com/sparklemotion/sqlite3-ruby/blob/main/adr/2024-09-fork-safety.md
@flavorjones
flavorjones force-pushed the flavorjones-hush-sqlite3-forksafety-warnings branch from adcadda to 7c34062 Compare September 24, 2024 21:47
@rails-bot rails-bot Bot added the railties label Sep 24, 2024
@flavorjones flavorjones changed the title Update dependency on sqlite3 gem to >= 2.1.0.rc3 Update dependency on sqlite3 gem to >= 2.1 Sep 24, 2024
@flavorjones
flavorjones requested a review from byroot September 24, 2024 22:00
@byroot
byroot merged commit 9e9f807 into rails:main Sep 25, 2024
@flavorjones
flavorjones deleted the flavorjones-hush-sqlite3-forksafety-warnings branch September 25, 2024 12:53
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.

2 participants