Repository navigation
Conversation
Track entry weights, support eviction on resize, and grow storage on demand. Co-authored-by: Codex <codex@openai.com>
manuzhang
added a commit
to manuzhang/iceberg-cpp
that referenced
this pull request
Nov 25, 2026
Sync the weighted LRU implementation and tests with the standalone patch in apache#1174. Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Use typed cache properties and keep the process capacity configurable through the runtime setter. Reject deletes on the cache adapter and keep older input handles from restoring invalidated bytes. Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
manuzhang
marked this pull request as ready for review
November 25, 2026 15:27
Co-authored-by: Codex <codex@openai.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add an internal cache for immutable file content. #875 uses it for manifest files and lists when a table enables caching.
ContentCache::SetGlobalCapacitysetter changes it immediately. feat: cache immutable manifest content per table #875 exposes it asTable::SetManifestCacheLimit. Global eviction review.Validation
The standalone
util_testsuite covers read-only LRU access, weigher failures on insert and replacement, prefix reads followed by full reads, warm-cache retention during oversized reads, stream fallback errors, eviction and reader lifetime, reuse of a slot after its cache is destroyed, unsupported adapter deletes, and canonical reads after alias deletion or replacement. The Arrow tests also exercise deletion through an S3 URI alias and a local path alias. Pre-commit and clang-tidy 22.1.8 passed locally.