Skip to content

Commit f582684

Browse files
committed
add log
1 parent 7f87bd7 commit f582684

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rdb/rdb-sink/src/main/java/com/dtstack/flink/sql/sink/rdb/format/RetractJDBCOutputFormat.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)