Skip to content

Commit

Permalink
Core: Clear deleted files set between commit attempts for simple tran…
Browse files Browse the repository at this point in the history
…saction
  • Loading branch information
amogh-jahagirdar committed Sep 20, 2023
1 parent 38e1c33 commit ffed1ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/org/apache/iceberg/BaseTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,8 @@ private void applyUpdates(TableOperations underlyingOps) {
// use refreshed the metadata
this.base = underlyingOps.current();
this.current = underlyingOps.current();
deletedFiles.clear();

for (PendingUpdate update : updates) {
// re-commit each update in the chain to apply it and update current
try {
Expand Down

0 comments on commit ffed1ad

Please sign in to comment.