Skip to content

Commit

Permalink
fix database sync
Browse files Browse the repository at this point in the history
  • Loading branch information
wudi committed Oct 8, 2023
1 parent 89891f5 commit 53fae5a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,12 @@ public DorisSink<String> buildDorisSink(String table) {
sinkConfig.getOptional(DorisConfigOptions.SINK_MAX_RETRIES).ifPresent(executionBuilder::setMaxRetries);
sinkConfig.getOptional(DorisConfigOptions.SINK_IGNORE_UPDATE_BEFORE).ifPresent(executionBuilder::setIgnoreUpdateBefore);

boolean enable2pc = sinkConfig.getBoolean(DorisConfigOptions.SINK_ENABLE_2PC);
if(!enable2pc){

if(!sinkConfig.getBoolean(DorisConfigOptions.SINK_ENABLE_2PC)){
executionBuilder.disable2PC();
} else if(sinkConfig.getOptional(DorisConfigOptions.SINK_ENABLE_2PC).isPresent()){
//force open 2pc
executionBuilder.enable2PC();
}

//batch option
Expand Down

0 comments on commit 53fae5a

Please sign in to comment.