You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "rdblue (via GitHub)" <gi...@apache.org> on 2023/09/19 19:34:39 UTC
[GitHub] [iceberg] rdblue commented on a diff in pull request #8520: Core: Clear deleted files set between commit attempts for simple transactions
rdblue commented on code in PR #8520:
URL: https://github.com/apache/iceberg/pull/8520#discussion_r1330618046
##########
core/src/main/java/org/apache/iceberg/BaseTransaction.java:
##########
@@ -421,6 +421,7 @@ private void commitSimpleTransaction() {
.onlyRetryOn(CommitFailedException.class)
.run(
underlyingOps -> {
+ deletedFiles.clear();
Review Comment:
It's not safe to do this here because this will clear before the first commit. `applyUpdates` will not re-commit everything on the first commit because those are already completed. Instead I think this needs to be called within `applyUpdates` just before all operations are re-committed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org