You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "hailin0 (via GitHub)" <gi...@apache.org> on 2023/05/04 07:59:32 UTC

[GitHub] [incubator-seatunnel] hailin0 commented on a diff in pull request #4690: [Hotfix][JDBC Sink] Fix JDBC Sink oom bug

hailin0 commented on code in PR #4690:
URL: https://github.com/apache/incubator-seatunnel/pull/4690#discussion_r1184671974


##########
seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/internal/JdbcOutputFormat.java:
##########
@@ -155,7 +155,9 @@ protected void addToBatch(I record) throws SQLException {
     }
 
     public synchronized void flush() throws IOException {
-        checkFlushException();
+        if (flushException != null) {
+            return;

Review Comment:
   log warn or debug message



-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org