You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "zhongyujiang (via GitHub)" <gi...@apache.org> on 2026/06/05 08:58:32 UTC
[PR] Core: Skip unnecessary manifest scans during expire snapshots metadata cleanup [iceberg]
zhongyujiang opened a new pull request, #16691:
URL: https://github.com/apache/iceberg/pull/16691
## Summary
- When `cleanExpiredMetadata` is enabled, skip scanning all snapshot manifest lists to collect reachable partition spec IDs if the table has only a single spec that is the current default spec (the common case).
- Additionally, once all known specs have been confirmed reachable during the scan, skip manifest I/O for the remaining snapshots.
Both optimizations avoid unnecessary manifest file reads for tables with few or no partition spec evolutions.
## Test plan
- [x] Existing `TestRemoveSnapshots` tests pass (covers `testRemoveSpecDuringExpiration`, `testRemoveSpecsDoesntRemoveDefaultSpec`, `testNoSchemasOrSpecsToRemove`)
- [x] `./gradlew :iceberg-core:spotlessCheck` passes
- [ ] CI validates no regressions across all test suites
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Skip unnecessary manifest scans during expire snapshots metadata cleanup [iceberg]
Posted by "zhongyujiang (via GitHub)" <gi...@apache.org>.
zhongyujiang commented on PR #16691:
URL: https://github.com/apache/iceberg/pull/16691#issuecomment-4644797979
@huaxingao Thanks for reviewing!
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Skip unnecessary manifest scans during expire snapshots metadata cleanup [iceberg]
Posted by "huaxingao (via GitHub)" <gi...@apache.org>.
huaxingao commented on PR #16691:
URL: https://github.com/apache/iceberg/pull/16691#issuecomment-4640996573
Thanks @zhongyujiang for the PR!
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Core: Skip unnecessary manifest scans during expire snapshots metadata cleanup [iceberg]
Posted by "huaxingao (via GitHub)" <gi...@apache.org>.
huaxingao merged PR #16691:
URL: https://github.com/apache/iceberg/pull/16691
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org