File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
rdb/rdb-sink/src/main/java/com/dtstack/flink/sql/sink/rdb/format Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,10 @@ public class RetractJDBCOutputFormat extends MetricOutputFormat {
5858 private String tableName ;
5959 private String dbType ;
6060 private RdbSink dbSink ;
61+ // trigger preparedStatement execute batch interval
6162 private long batchWaitInterval = 10000l ;
62- private int batchNum ;
63+ // PreparedStatement execute batch num
64+ private int batchNum = 1 ;
6365 private String insertQuery ;
6466 public int [] typesArray ;
6567
@@ -290,7 +292,7 @@ public void close() throws IOException {
290292 timerService .shutdown ();
291293 }
292294 } catch (SQLException se ) {
293- LOG .info ("Inputformat couldn't be closed - " + se . getMessage () );
295+ LOG .info ("Inputformat couldn't be closed - " , se );
294296 } finally {
295297 upload = null ;
296298 batchCount .set (0 );
@@ -301,7 +303,7 @@ public void close() throws IOException {
301303 dbConn .close ();
302304 }
303305 } catch (SQLException se ) {
304- LOG .info ("Inputformat couldn't be closed - " + se . getMessage () );
306+ LOG .info ("Inputformat couldn't be closed - " , se );
305307 } finally {
306308 dbConn = null ;
307309 }
You can’t perform that action at this time.
0 commit comments