File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
rdb/rdb-sink/src/main/java/com/dtstack/flink/sql/sink/rdb/format Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,13 @@ public void configure(Configuration parameters) {
9393 @ Override
9494 public void open (int taskNumber , int numTasks ) throws IOException {
9595 try {
96+ LOG .info ("PreparedStatement execute batch num is {}" , batchNum );
9697 establishConnection ();
9798 initMetric ();
9899
99100 if (batchWaitInterval > 0 ) {
101+ LOG .info ("open batch wait interval scheduled, interval is {} ms" , batchWaitInterval );
102+
100103 timerService = new ScheduledThreadPoolExecutor (1 );
101104 timerService .scheduleAtFixedRate (() -> {
102105 submitExecuteBatch ();
@@ -289,6 +292,7 @@ public void close() throws IOException {
289292 }
290293 if (null != timerService ) {
291294 timerService .shutdown ();
295+ LOG .info ("batch wait interval scheduled service closed " );
292296 }
293297 } catch (SQLException se ) {
294298 LOG .info ("Inputformat couldn't be closed - " , se );
You can’t perform that action at this time.
0 commit comments