FaxianZhao commented on a change in pull request #8429: [FLINK-12499][JDBC] 
JDBCAppendTableSink support retry
URL: https://github.com/apache/flink/pull/8429#discussion_r285449200
 
 

 ##########
 File path: 
flink-connectors/flink-jdbc/src/main/java/org/apache/flink/api/java/io/jdbc/JDBCOutputFormat.java
 ##########
 @@ -333,6 +376,12 @@ public JDBCOutputFormat finish() {
                        if (format.drivername == null) {
                                throw new IllegalArgumentException("No driver 
supplied.");
                        }
+                       if (format.retries < 0) {
+                               throw new IllegalArgumentException("Retres 
should great or equal 0.");
 
 Review comment:
   Accept. 

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to