Skip to content

Commit

Permalink
fix commit execute
Browse files Browse the repository at this point in the history
  • Loading branch information
sodaRyCN committed Jul 23, 2024
1 parent 37e7078 commit 7d54630
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ List canal = [

dependencies {
api project(":eventmesh-openconnect:eventmesh-openconnect-java")
implementation "org.locationtech.jts"
implementation "org.locationtech.jts:jts-core"
implementation project(":eventmesh-common")
implementation canal
implementation "com.alibaba:druid"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ public void put(List<ConnectRecord> sinkRecords) {
statement.addBatch();
}
statement.executeBatch();
connection.commit();
} catch (SQLException e) {
log.warn("full sink process schema [{}] table [{}] connector write fail", tableDefinition.getSchemaName(),tableDefinition.getTableName(),
e);
Expand Down

0 comments on commit 7d54630

Please sign in to comment.