Skip to content

Commit

Permalink
[HUDI-1988] FinalizeWrite() been executed twice in AbstractHoodieWrit…
Browse files Browse the repository at this point in the history
…eClient$commitstats
  • Loading branch information
swuferhong committed Jun 8, 2021
1 parent f760ec5 commit 1f85ab3
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -176,8 +176,6 @@ public boolean commitStats(String instantTime, List<HoodieWriteStat> stats, Opti
HoodieTable table = createTable(config, hadoopConf);
HoodieCommitMetadata metadata = CommitUtils.buildMetadata(stats, partitionToReplaceFileIds,
extraMetadata, operationType, config.getWriteSchema(), commitActionType);
// Finalize write
finalizeWrite(table, instantTime, stats);
HeartbeatUtils.abortIfHeartbeatExpired(instantTime, table, heartbeatClient, config);
this.txnManager.beginTransaction(Option.of(new HoodieInstant(State.INFLIGHT, table.getMetaClient().getCommitActionType(), instantTime)),
lastCompletedTxnAndMetadata.isPresent() ? Option.of(lastCompletedTxnAndMetadata.get().getLeft()) : Option.empty());
Expand Down

0 comments on commit 1f85ab3

Please sign in to comment.