The GitHub Actions job "E2E - SQL" on 
shardingsphere.git/fix-catalog-switch-connection-leak has failed.
Run started by GitHub user PDGGK (triggered by PDGGK).

Head commit for run:
c7597e5d265a6956ac8bc26e6a2ece45c7123a91 / Zihan Dai <[email protected]>
Close the connection when CatalogSwitchableDataSource fails to switch catalog

getConnection takes a connection out of the pool and then applies the catalog
to it. When getCatalog or setCatalog throws, the method exits with that
connection checked out and unreferenced, so it is never returned. A catalog
that does not exist drains the pool one connection per call.

Close it on the way out with QuietlyCloser, so the original failure is still
what the caller sees.

Report URL: https://github.com/apache/shardingsphere/actions/runs/32978763124

With regards,
GitHub Actions via GitBox

Reply via email to