Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed Jul 15, 2024
1 parent b1225b0 commit 02d3e5e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions be/src/cloud/cloud_stream_load_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,9 @@ Status CloudStreamLoadExecutor::operate_txn_2pc(StreamLoadContext* ctx) {
}

Status CloudStreamLoadExecutor::commit_txn(StreamLoadContext* ctx) {
if (!config::enable_stream_load_commit_txn_on_be) {
VLOG_DEBUG << "commit stream load txn with FE support";
return StreamLoadExecutor::commit_txn(ctx);
}
if (ctx->load_type == TLoadType::ROUTINE_LOAD) {
return StreamLoadExecutor::commit_txn(ctx);
}

// forward to fe to excute commit transaction for MoW table
if (ctx->is_mow_table()) {
if (ctx->is_mow_table() || !config::enable_stream_load_commit_txn_on_be ||
ctx->load_type == TLoadType::ROUTINE_LOAD) {
Status st;
int retry_times = 0;
while (retry_times < config::mow_stream_load_commit_retry_times) {
Expand Down

0 comments on commit 02d3e5e

Please sign in to comment.