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.

Environment

None

Status

Assignee

Vlad Mihalcea

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Priority

Major
Configure