In the `select_all` method: https://github.com/kickstarter/replica_pools/blob/4c1a5108a39c04fd8e6a9c0cb9673b00da09f38b/lib/replica_pools/query_cache.rb#L27 We call `locked?` which is no longer supported in Rails 6.2. Rails edge https://github.com/rails/rails/blob/80a23227ea3bbf080c51f91efd8a0512ed038821/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb#L101 Rails 6.1 https://github.com/rails/rails/blob/6-1-stable/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb#L97