Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class JdbcSinkOptions extends JdbcCommonOptions {
.withDescription("auto commit");

public static final Option<Integer> MAX_RETRIES =
Options.key("max_retries").intType().defaultValue(0).withDescription("max_retired");
Options.key("max_retries").intType().defaultValue(0).withDescription("max_retries");

public static final Option<String> XA_DATA_SOURCE_CLASS_NAME =
Options.key("xa_data_source_class_name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public synchronized void close() {
if (jdbcStatementExecutor != null) {
jdbcStatementExecutor.closeStatements();
}
} catch (SQLException e) {
} catch (SQLException | JdbcConnectorException e) {
LOG.warn("Close JDBC writer failed.", e);
}
}
Expand All @@ -205,7 +205,7 @@ public synchronized void close() {
public void updateExecutor(boolean reconnect) throws SQLException, ClassNotFoundException {
try {
jdbcStatementExecutor.closeStatements();
} catch (SQLException e) {
} catch (SQLException | JdbcConnectorException e) {
if (!reconnect) {
throw e;
}
Expand Down