Skip to content

Commit

Permalink
[HUDI-7109] Fix Flink may re-use a committed instant in append mode (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyue19921010 authored Nov 17, 2023
1 parent f06ff5b commit 3d0c450
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ protected void sendBootstrapEvent() {
int attemptId = getRuntimeContext().getAttemptNumber();
if (attemptId > 0) {
// either a partial or global failover, reuses the current inflight instant
if (this.currentInstant != null) {
if (this.currentInstant != null && !metaClient.getActiveTimeline().filterCompletedInstants().containsInstant(currentInstant)) {
LOG.info("Recover task[{}] for instant [{}] with attemptId [{}]", taskID, this.currentInstant, attemptId);
this.currentInstant = null;
return;
Expand Down

0 comments on commit 3d0c450

Please sign in to comment.