You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clear all threads query cache when a connection is pinned
Ref: Shopify/maintenance_tasks#983 (comment)
Ref: rails#51151
Now that query caches are owned by the pool, and assigned on connections
during checkout, when running multithreaded code inside transactional
tests (typically system tests), the two threads uses the same connection
but not the same cache.
So it's important that we do clear the caches for all threads when
a connection is pinned.
0 commit comments