sikadisamadeisi commented on PR #4543:
URL: https://github.com/apache/iceberg-python/pull/4543#issuecomment-7438760159
Thanks for the thorough review and repros @rahulsmahadev! Updated the PR to
address both points:
1. `self._known_snapshot_ids` is now captured right before each
`self._table._do_commit(...)` in the retry loop rather than at the start of
`_attempt_landed()`, so a concurrent `table.refresh()` on the shared `Table`
instance no longer hides snapshots committed on top.
2. When direct `manifest_path` matching misses, `_attempt_landed()` now
inspects newly added manifests with existing entries (`has_existing_files()`,
excluding manifests already present in known snapshots) and checks
`entry.snapshot_id in added_snapshot_ids`, propagating read failures into
`CommitStateUnknownException` if no match is found elsewhere.
Added regression tests covering shared-table refresh, manifest-merge
rewrites, `delete("x == 1")` manifest rewrites on an identity-partitioned table
(across 0 and 1 retries), and unreadable rewritten manifests. Agreed that a
full overwrite replacing every row of the landed snapshot is best tracked as a
separate follow-up if needed.
--
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]