Driver Manager Connection Pool should close leaked connections upon shutting down
Description
DriverManagerConnectionProviderImpl uses PooledConnections behind the scenes to pool connections, but it only tracks the available connections and not all connections that have been created from the start.
We need to track all connections so that, when we shut down the pool, even the connections that are currently being in use are properly closed as well. Currently, only the unllocated connections are being closed.
DriverManagerConnectionProviderImpl
usesPooledConnections
behind the scenes to pool connections, but it only tracks the available connections and not all connections that have been created from the start.We need to track all connections so that, when we shut down the pool, even the connections that are currently being in use are properly closed as well. Currently, only the unllocated connections are being closed.