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
  • Loading branch information
EchoLee5 committed May 22, 2023
1 parent 31de52a commit 6cd6884
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);
flushException = 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 6cd6884

Please sign in to comment.