Github user jrthe42 commented on a diff in the pull request:

    https://github.com/apache/flink/pull/6301#discussion_r201555608
  
    --- Diff: 
flink-connectors/flink-jdbc/src/main/java/org/apache/flink/api/java/io/jdbc/JDBCOutputFormat.java
 ---
    @@ -41,6 +43,8 @@
     public class JDBCOutputFormat extends RichOutputFormat<Row> {
        private static final long serialVersionUID = 1L;
        static final int DEFAULT_BATCH_INTERVAL = 5000;
    +   static final long DEFAULT_IDLE_CONNECTION_CHECK_INTERVAL = 30 * 60 * 
1000;
    +   static final int DEFAULT_IDLE_CONNECTION_CHECK_TIMEOUT = 0;
    --- End diff --
    
    DEFAULT_IDLE_CONNECTION_CHECK_INTERVAL is the default schedule period for 
timer, DEFAULT_IDLE_CONNECTION_CHECK_TIMEOUT  is the default timeout for 
validating the connection. A value of 0 indicates a timeout is not applied to 
the database operation, see here:
    
https://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html#isValid-int-


---

Reply via email to