Invalidate cached pooled connection when DB details change (#17307)
Adding new cache to `metabase.driver.sql-jdbc.connection` that tracks the DB details hash values per DB id Checking if the non-empty hash value of DB details changed in `db->pooled-connection-spec` in order to invalidate an existing pool Adding test that redefines the log fn to assert that the pool is invalidated on hash change
Showing
- src/metabase/driver/sql_jdbc/connection.clj 58 additions, 26 deletionssrc/metabase/driver/sql_jdbc/connection.clj
- test/metabase/driver/postgres_test.clj 1 addition, 1 deletiontest/metabase/driver/postgres_test.clj
- test/metabase/driver/sql_jdbc/connection_test.clj 45 additions, 1 deletiontest/metabase/driver/sql_jdbc/connection_test.clj
Please register or sign in to comment