Repository navigation
Antalya 26.8: Charge decoded manifest weight in PartFolderView::estimatedBytes() - #2997
Open
sks wants to merge 1 commit into
Conversation
…Bytes() Share `decodedPartManifestWeight(const PartManifest &)` between `CasManifestReader::PartManifestWeight` and `PartFolderView::estimatedBytes()`. Because `CasRefLedger::resolveRef` sets `Resolved::manifest_size = 0`, `PartFolderView::estimatedBytes()` previously returned `256` even when `manifest_body` retained megabytes of decoded `inline_bytes` (follow-up noted in Altinity#2969 review). Add `CASPartFolderView.EstimatedBytesReusesDecodedManifestWeightWhenManifestSizeZero` in `src/Disks/tests/gtest_cas_part_folder_view.cpp`. Signed-off-by: sabith <sks@stackgen.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
sks
force-pushed
the
fix/antalya-26.8/cas-part-folder-cache-weight-and-s3-delete-stopwatch
branch
from
December 3, 2026 01:27
f3b872c to
9897886
Compare
sks
marked this pull request as ready for review
December 3, 2026 01:30
Author
|
The |
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.
Addresses the part-folder cache weight follow-up noted in #2969 (review):
Changes
CasPartManifestFormat.h,CasManifestReader.h,PartFolderAccess.cpp):decodedPartManifestWeight(const PartManifest &)inCasPartManifestFormat.h(256 + sum(e.path.size() + e.inline_bytes.size() + 96)) and reuses it in bothCasManifestReader::PartManifestWeightandPartFolderView::estimatedBytes()(std::max<size_t>(256 + manifest_size, decodedPartManifestWeight(*manifest_body))).Resolved::manifest_size == 0on a ref resolve,PartFolderView::estimatedBytes()now charges the decoded manifest's retained path and inline-byte weight againstcas_part_folder_cache_bytes(64 MiB) and honorscas_part_folder_cache_max_entry_bytes(16 MiB).gtest_cas_part_folder_view.cpp):CASPartFolderView.EstimatedBytesReusesDecodedManifestWeightWhenManifestSizeZeroinsrc/Disks/tests/gtest_cas_part_folder_view.cpp.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Account for retained decoded manifest bytes in
PartFolderView::estimatedBytes()forcas_part_folder_cache.Documentation entry for user-facing changes
CI/CD Options
Exclude tests:
Regression jobs to run: