Skip to content

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

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

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

Conversation

@sks

@sks sks commented Dec 3, 2026 •

Copy link
Copy Markdown

Addresses the part-folder cache weight follow-up noted in #2969 (review):

"The part-folder cache weight is a separate follow-up. It currently charges 256 bytes per view even when the view keeps a large decoded manifest alive. We could reuse the existing decoded-manifest weight there."

Changes

  • Part-Folder View Cache Weight (CasPartManifestFormat.h, CasManifestReader.h, PartFolderAccess.cpp):
    • 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))).
    • When Resolved::manifest_size == 0 on a ref resolve, PartFolderView::estimatedBytes() now charges the decoded manifest's retained path and inline-byte weight against cas_part_folder_cache_bytes (64 MiB) and honors cas_part_folder_cache_max_entry_bytes (16 MiB).
  • Tests (gtest_cas_part_folder_view.cpp):
    • Added CASPartFolderView.EstimatedBytesReusesDecodedManifestWeightWhenManifestSizeZero in src/Disks/tests/gtest_cas_part_folder_view.cpp.

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Account for retained decoded manifest bytes in PartFolderView::estimatedBytes() for cas_part_folder_cache.

Documentation entry for user-facing changes

  • Documentation is written (internal cache weight accounting fix)

CI/CD Options

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Unit tests
  • Performance tests
  • Aarch64 tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • CAS (content-addressed storage; Antalya only)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • OAuth (5m)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

…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 fix/antalya-26.8/cas-part-folder-cache-weight-and-s3-delete-stopwatch branch from f3b872c to 9897886 Compare December 3, 2026 01:27
@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
@sks
sks marked this pull request as ready for review December 3, 2026 01:30
@filimonov filimonov added the CAS label Dec 3, 2026
@filimonov
filimonov requested a review from k-morozov December 3, 2026 18:34
@sks

sks commented Dec 3, 2026

Copy link
Copy Markdown
Author

The Integration tests (amd_asan_ubsan, db disk, old analyzer, 2/8) job failed with a session timeout, not a test failure: the artifact shows 2781 passed / 45 skipped / 0 failed (pytest_parallel.jsonl), with ERROR: session-timeout occurred during test execution after ~2h33m. Nothing in the diff (PartFolderView::estimatedBytes weight charging + S3 delete stopwatch logging) affects integration tests on this path. Requesting a re-run of that job to confirm it was runner-side.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants