badalprasadsingh opened a new issue, #1829: URL: https://github.com/apache/iceberg-go/issues/1829
### Apache Iceberg version main (development) ### Please describe the bug 🐞 Well, when `history.expire.min-snapshots-to-keep` is `0` and a non-main branch's head snapshot is older than `max-snapshot-age-ms`, `ExpireSnapshots` expires the head snapshot itself. The branch ref then loses its target snapshot and `RemoveSnapshots` silently prunes the ref entirely — the branch disappears with no error. IMO, root cause is: only main's head snapshot is unconditionally protected before the age / count trim loop runs; other branches rely on the loop adding their head, which can break on iteration 0 when `numSnapshots(0) >= minSnapshotsToKeep(0)`. ### Status Will be working on the fix and raise the PR soon. -- 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]
