Sajish85 commented on PR #19078: URL: https://github.com/apache/iceberg/pull/19078#issuecomment-7075660125
Thanks for picking this up so quickly. I ran the scenarios from my B2 study against your branch (c16808d) — compaction racing snapshot expiry, Spark 3.5.3 on a Postgres catalog with MinIO. The good news first: the NPE is gone. I forced expiry into the rewrite's commit window in 8 runs and every one now fails with a clear "Cannot rewrite files: starting snapshot … is no longer available" instead. And nothing got hurt — across 101 runs plus a couple of controls there was no data loss: acknowledged writes, tagged snapshots and pinned reads all intact, pyiceberg reads agree with Spark, no orphaned data files left behind. Your new tests pass too. Two things I noticed, in case they're useful: 1. With partial progress on, the call still reports success with failed_data_files_count=0 even though most groups (17–18 of 20 in my runs) got dropped. I expect that's deliberate — your test name suggests as much — but it's the kind of success that's easy to miss in a pipeline. 2. In the original #17202 setup (rewrite paused at its first write, expiry removes its starting snapshot, then the rewrite resumes) the new message never shows up — all the failures are the older "Cannot determine history between starting snapshot …" one. My guess is the table object is stale at that point so the snapshot still looks present, but I haven't dug into the code to confirm. Happy to share the exact steps and logs if either of those is worth a closer look. -- 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]
