wuchong commented on a change in pull request #14387:
URL: https://github.com/apache/flink/pull/14387#discussion_r547045393



##########
File path: 
flink-connectors/flink-connector-jdbc/src/main/java/org/apache/flink/connector/jdbc/internal/JdbcBatchingOutputFormat.java
##########
@@ -179,11 +178,9 @@ public synchronized void flush() throws IOException {
                                        throw new IOException(e);
                                }
                                try {
-                                       if 
(!connection.isValid(connectionCheckTimeoutSeconds)) {

Review comment:
       We shouldn't remove this condition, otherwise, it will reestabilish 
connection when every attempt is failed. 
   
   Maybe we can move `connectionCheckTimeout` from `JdbcOptions` to 
`JdbcExecutionOptions`, then you can get the value here. 




----------------------------------------------------------------
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.

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


Reply via email to