zhangshenghang opened a new pull request, #11133:
URL: https://github.com/apache/seatunnel/pull/11133

   ## Purpose
   
   Fixes #10530.
   
   `AbstractJdbcCatalog.close()` used to stop immediately when closing one 
cached JDBC connection failed. If the catalog held multiple database 
connections, every connection after the first failure was skipped and could be 
leaked.
   
   ## Changes
   
   - Continue closing all cached JDBC connections even if one close operation 
throws `SQLException`.
   - Preserve later close failures with `addSuppressed()` so error context is 
not lost.
   - Clear the connection cache after all close attempts.
   - Add a regression test that verifies all cached connections are closed and 
suppressed close failures are retained.
   
   ## Validation
   
   - `./mvnw spotless:apply`
   - `./mvnw -pl seatunnel-connectors-v2/connector-jdbc -am -DskipIT 
-Dtest=AbstractJdbcCatalogTest -DfailIfNoTests=false verify`
   - `./mvnw -q -DskipTests verify`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to