Sajish85 commented on PR #19078:
URL: https://github.com/apache/iceberg/pull/19078#issuecomment-7085556585
Thanks for digging into both of those. Splitting the reporting question off
from this fix makes sense to me too.
Here's how the second scenario ran. It's basically the #17202 shape: I built
the Spark 3.5 runtime jar from the PR head (`c16808d`) and ran it against a
Postgres JDBC catalog with MinIO underneath, on an unpartitioned append-only
table seeded with 120 batches, with ingest still coming in while maintenance
ran.
The rewrite runs with partial progress on (max-commits 4, small file groups
so it plans 19 of them). I froze the JVM with SIGSTOP right at its first write
job, let 5 more batches land, then ran `expire_snapshots(older_than = now - 1s,
retain_last = 1)` from a separate session, which took out the snapshot the
rewrite started from. Then SIGCONT and let it finish.
What came back was a successful call with rewritten 0, added 0, failed 0 —
but none of the 19 groups actually committed. All four commit attempts failed
and got swallowed by partial progress, and every single one was the old
message, not yours:
```
ERROR BaseCommitService: Failure during rewrite commit process, partial
progress enabled. Ignoring
org.apache.iceberg.exceptions.ValidationException: Cannot determine history
between starting snapshot 8337453309584121096 and the last known ancestor
3892157692077104923
at
org.apache.iceberg.exceptions.ValidationException.check(ValidationException.java:49)
at
org.apache.iceberg.MergingSnapshotProducer.validationHistory(MergingSnapshotProducer.java:1076)
```
I grepped the full log afterwards — "no longer available" appears zero
times. The good news is nothing was lost: I checked acknowledged writes, tags
and pinned reads afterwards and pyiceberg agreed with Spark on all of it.
Where it gets interesting is the contrast with the race scenario. When
expiry lands inside the commit window *after* a first commit has already gone
through, your new message fires exactly as intended, at
`RewriteDataFilesCommitManager.commitFileGroups` line 101 — I saw it in all 8
cells there. In this control nothing ever commits, so the table never
refreshes, which lines up with your read of the code.
I have the full maint.log if you want it, and I'm happy to re-run this with
a tweak if there's a variant that would make a better regression test.
--
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]