dybyte commented on code in PR #9942:
URL: https://github.com/apache/seatunnel/pull/9942#discussion_r2548932180
##########
seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/internal/JdbcOutputFormat.java:
##########
@@ -194,7 +194,7 @@ public synchronized void close() {
if (jdbcStatementExecutor != null) {
jdbcStatementExecutor.closeStatements();
}
- } catch (SQLException e) {
+ } catch (SQLException | JdbcConnectorException e) {
Review Comment:
If this exception is not caught, the subsequent code cannot be executed when
an error occurs. `closeStatements()` can throw a `JdbcConnectorException`.
--
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]