AnujVakil opened a new pull request, #3831: URL: https://github.com/apache/iceberg-rust/pull/3831
## Which issue does this PR close? Part of #1720. This covers manifest lists. Parsed manifest accounting remains follow-up work. ## What changes are included in this PR? Give Moka an estimated owned size for each cached manifest list. The estimate includes reserved entry and partition-summary slots, paths, bounds, and key metadata. Weight saturates at Moka's `u32` maximum. Eviction continues to run on Moka's maintenance schedule. The memory estimate counts the list value and allocations owned by its contents. It excludes allocator and cache bookkeeping overhead, and a single weight cannot represent more than `u32::MAX` bytes. ## Are these changes tested? The regression failed with the old weigher and passed with the fix. A one-entry fixture went from 24 B to 1,190 B of cache weight. After maintenance, a 4 KiB cache retains it and a 64 B cache evicts it. The other new tests cover empty lists, spare vector and buffer capacity, and weight saturation. The Docker-backed workspace suite passed 2,985 tests across 38 binaries, with 4 skipped. This includes the 2,360 Iceberg library tests, REST/Spark scan tests, and local S3 tests. The separate in-memory harness passed all 3 tests, including concurrent planning and eviction of a 4,096-entry list under a 64 KiB budget. Workspace library tests passed 2,760 cases with 4 ignored, and doctests passed 101 cases with 19 ignored. The workspace build, lint and documentation checks, and Rust 1.95.0 workspace check passed. All 14 workspace crates passed standalone checks. All 10 publishable crates matched their checked-in public API snapshots. Local Python binding tests stopped during collection due to a macOS dynamic loader error also reproduced on the original upstream commit. In a local estimator-only benchmark, the 4,096-entry fixture took about 43–49 µs per estimate across two runs. This measures the work performed when assigning cache weight. ## AI Disclosure AI tools were used to accelerate code investigation, implementation, and testing. -- 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]
