Skip to content

Commit

Permalink
[fix](merge-cloud) Fix s3 load replay after restart fe
Browse files Browse the repository at this point in the history
  • Loading branch information
liaoxin01 committed Mar 11, 2024
1 parent 340427c commit a95e792
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,13 @@ brokerFileGroups, getDeadlineMs(), getExecMemLimit(),
}
return task;
}

@Override
protected void executeFinish() {
super.executeFinish();
// When replaying a load job, the state of the job can be obtained through replaying transaction
// status information in local mode. However, in cloud mode, there is no edit log of transaction
// in fe. so pint an edit log to save the status information of the job here.
logFinalOperation();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ protected void unprotectedExecuteCancel(FailMsg failMsg, boolean abortTxn) {
state = JobState.CANCELLED;
}

private void executeFinish() {
protected void executeFinish() {
progress = 100;
finishTimestamp = System.currentTimeMillis();
Env.getCurrentGlobalTransactionMgr().getCallbackFactory().removeCallback(id);
Expand Down

0 comments on commit a95e792

Please sign in to comment.