Skip to content

Commit

Permalink
[Hotfix][Connector][Jdbc] Fix the problem of JdbcOutputFormat databas…
Browse files Browse the repository at this point in the history
…e connection leak

[Hotfix][Connector][Jdbc] Fix the problem of JdbcOutputFormat database connection leak
  • Loading branch information
EchoLee5 authored and TyrantLucifer committed May 26, 2023
1 parent 7a81fd3 commit 9946b22
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,11 @@ public synchronized void close() {
flush();
} catch (Exception e) {
LOG.warn("Writing records to JDBC failed.", e);
throw new JdbcConnectorException(
CommonErrorCode.FLUSH_DATA_FAILED,
"Writing records to JDBC failed.",
e);
flushException =
new JdbcConnectorException(
CommonErrorCode.FLUSH_DATA_FAILED,
"Writing records to JDBC failed.",
e);
}
}

Expand Down

0 comments on commit 9946b22

Please sign in to comment.