Skip to content

Commit 654d499

Browse files
committed
add comment
1 parent 03f46f1 commit 654d499

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)