Skip to content

Commit 1ddc6dd

Browse files
committed
Merge branch 'v1.5.0_dev' of ssh://git.dtstack.cn:10022/dtstack/dt-center-flinkStreamSQL into 1.5.0_dev_field_as
2 parents 1f76c9f + add0cab commit 1ddc6dd

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
@@ -40,6 +40,7 @@
4040
import java.util.concurrent.atomic.AtomicInteger;
4141

4242
import com.dtstack.flink.sql.sink.MetricOutputFormat;
43+
import sun.rmi.runtime.Log;
4344

4445
/**
4546
* OutputFormat to write tuples into a database.
@@ -117,8 +118,10 @@ public void open(int taskNumber, int numTasks) throws IOException {
117118
}
118119

119120
} catch (SQLException sqe) {
121+
LOG.error("", sqe);
120122
throw new IllegalArgumentException("open() failed.", sqe);
121123
} catch (ClassNotFoundException cnfe) {
124+
LOG.error("", cnfe);
122125
throw new IllegalArgumentException("JDBC driver class not found.", cnfe);
123126
}
124127
}
@@ -271,6 +274,7 @@ private void updatePreparedStmt(Row row, PreparedStatement pstmt) throws SQLExce
271274

272275
private synchronized void submitExecuteBatch() {
273276
try {
277+
LOG.info("submitExecuteBatch start......");
274278
this.upload.executeBatch();
275279
this.batchCount.set(0);
276280
} catch (SQLException e) {

0 commit comments

Comments
 (0)