Skip to content

Antalya 26.8: Charge decoded manifest weight in PartFolderView::estimatedBytes() - #1

Open
sks wants to merge 1 commit into
antalya-26.8from
sks/antalya-26.8/cas-part-folder-cache-weight-and-s3-delete-stopwatch
Open

sks wants to merge 1 commit into
antalya-26.8from
sks/antalya-26.8/cas-part-folder-cache-weight-and-s3-delete-stopwatch

Conversation

@sks

@sks sks commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Atomic PR addressing the part-folder cache weight follow-up noted in Altinity/ClickHouse#2969 (review):

  • Extracts decodedPartManifestWeight(const PartManifest &) in CasPartManifestFormat.h (256 + sum(e.path.size() + e.inline_bytes.size() + 96)) and reuses it in both CasManifestReader::PartManifestWeight and PartFolderView::estimatedBytes() (std::max<size_t>(256 + manifest_size, decodedPartManifestWeight(*manifest_body))).
  • Added unit test CASPartFolderView.EstimatedBytesReusesDecodedManifestWeightWhenManifestSizeZero in src/Disks/tests/gtest_cas_part_folder_view.cpp.
  • Upstream Draft PR: Altinity/ClickHouse#2997.

…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
sks force-pushed the sks/antalya-26.8/cas-part-folder-cache-weight-and-s3-delete-stopwatch branch from f3b872c to 9897886 Compare December 3, 2026 01:28
@sks sks changed the title Antalya 26.8: Charge decoded manifest weight in PartFolderView and record elapsed_microseconds on S3 deletes Antalya 26.8: Charge decoded manifest weight in PartFolderView::estimatedBytes() Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant