GayathriSrividya commented on code in PR #4446:
URL: https://github.com/apache/iceberg-python/pull/4446#discussion_r4656663548
##########
pyiceberg/table/__init__.py:
##########
@@ -1200,7 +1210,7 @@ def commit_transaction(self) -> Table:
self._cleanup_uncommitted_manifests()
break
self._rebuild_snapshot_updates()
- except (CommitFailedException, ValidationException):
+ except (CommitFailedException, ValidationException,
ValueError):
Review Comment:
Thanks for catching this, @Fokko . You’re right that catching ValueError
broadly could trigger cleanup when the commit outcome isn’t known to be safe.
I’ve updated retry-time duplicate detection to raise ValidationException and
removed ValueError from the cleanup handler, while preserving ValueError for
the initial duplicate check. Sorry for overlooking that cleanup-safety
implication in my earlier change. The focused commit-retry tests pass (174
passed).
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]