Rails Daily: Concurrency and Threading Fixes

Twenty pull requests merged focusing on thread safety, connection pool management, and optimistic locking improvements. Key fixes address fiber isolation issues, connection leaks, and lock version handling across Rails components.

Duration: PT2M5S

Episode overview

This episode is a short developer briefing from Rails Daily.

It explains recent repository work in plain language.

  • Show: Rails Daily
  • Published: 2026-05-22T10:01:40Z
  • Audio duration: PT2M5S

Transcript excerpt

This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.

Good morning, this is Rails Daily for May 22nd, 2026.

Yesterday saw significant activity with 20 merged pull requests addressing critical concurrency and stability issues.

Joel Junström merged two major concurrency fixes. First, ShareLock ownership now properly handles fiber isolation, preventing random NoMethodErrors under fiber-scheduled servers like Falcon. Second, ActionDispatch::Executor now releases reloader shares on rack hijack, fixing WebSocket and streaming connection…

Several database connection and threading issues were resolved. Yasuo Honda merged fixes to prevent PostgreSQL connection leaks in test suites, addressing "too many clients already" failures in CI. Ruy Rocha fixed Active Record Pool Reaper thread leaks after parallelized test runs, preventing accumulation in…

Optimistic locking received multiple improvements. Contributor 55728 fixed lock_version resets after nested savepoint rollbacks, while g-pavlik prevented unnecessary lock_version bumps during ActiveStorage blob analysis that were causing StaleObjectError exceptions.

ActiveStorage saw performance enhancements from Mordorreal, who parallelized MirrorService operations and fixed IntegrityError issues with…

Nearby episodes from Rails Daily

  1. Composite Keys and Documentation Updates
  2. Action Mailbox Security and PostgreSQL Fixes
  3. Weekly Recap - Error Handling & Developer Experience
  4. Error Messages and Developer Experience
  5. Parameter Safety and Date Format Improvements
  6. PostgreSQL 18 Support and Security Updates
  7. Cache Controls and Documentation Updates
  8. Query Fixes and Documentation Overhaul