Skip to content

Do not read index marks from object storage while destroying a part - #113454

Merged
alexey-milovidov merged 8 commits into
ClickHouse:masterfrom
groeneai:groeneai/fix-mark-cache-eviction-object-storage-io
Sep 21, 2026
Merged

alexey-milovidov merged 8 commits into
ClickHouse:masterfrom
groeneai:groeneai/fix-mark-cache-eviction-object-storage-io

Conversation

@groeneai

@groeneai groeneai commented Aug 5, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #110050
Related: #112484

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 into CHANGELOG.md):

Fixed unnecessary object-storage reads, and <Error>-level exception messages such as Code: 499 ... The specified key does not exist ... (S3_ERROR), while destroying a data part on an object-storage disk when its skip indices are packed into skp_idx.packed. Evicting the part's index marks from the mark cache no longer inspects the part's on-disk layout, so it performs no I/O.

Description

Mark-cache eviction needs only key strings, but IMergeTreeDataPart::removeIndexMarksFromCache asked getPhysicalFormat, i.e. "which substreams does this part hold?". For a part whose skip indices are bundled into skp_idx.packed that question is answered by reading the archive: indexFileExistsInChecksums -> IDataPartStorage::existsFile -> getSkipIndicesPackedReader -> disk->readFile. This runs during part destruction, including from unloadPrimaryKeysAndClearCachesOfOutdatedParts on the cleanup threads.

When the blob has been reclaimed while its metadata entry survives, the read fails and the error is rethrown, because getSkipIndicesPackedReader decides swallow-vs-rethrow by re-checking disk->existsFile, which on object storage is metadata-only and still answers "present". It then reaches removeIfNeeded's catch (...) and is logged in full at <Error> level, and it also aborts the substream loop so the remaining keys are not evicted.

I added IMergeTreeIndex::getPotentialSubstreams, which returns every substream any version of the index could have written. It takes neither a part nor a storage, so it cannot do part I/O. Overridden for minmax (.idx2 and legacy .idx) and for text (.pos unconditionally, since holding .pos is a property of the part, not of the current index definition). Removing an absent key is a no-op, so the superset is free, and the computed keys are unchanged.

I deliberately did not make the packed probe swallow the 404 instead: #107995 made that path fail closed on purpose.

#112484 has since merged and renamed this virtual to getPhysicalFormat; I merged master to pick that up. It does not remove this read (it still passes the part into a storage-probing helper), so this change is still needed. My #110050 rewrites the same lines and is still open; whichever lands second hand-resolves.

Validation

Jobs affected: Integration tests (*), for the new test below; the change is also exercised by the existing packed-skip-index tests, and packed_skip_index_max_bytes is randomized by clickhouse-test.

Reproducer on an object-storage disk: create a fully packed skip-index part, delete the skp_idx.packed object out from under its live metadata entry, DETACH/ATTACH so the archive probe is unseeded, then DROP TABLE ... SYNC. Deleting the object before the reattach is load-bearing, because the writer seeds the reader.

The oracle keys on the stack frame, not on the error code: the part-load path legitimately reads skp_idx.packed and is unaffected here, so it emits Code: 499 in both arms and serves as a positive control that the object really is gone. Counting bare occurrences would show a non-zero result either way.

Arm eviction-frame Code: 499 load-path Code: 499
before 1, in 3 of 3 runs 2
after 0, in 3 of 3 runs 2

Two unit tests in gtest_index_potential_substreams.cpp pin the enumeration, and each override has a mutant that fails its test. They still pass when only the caller is reverted, so the caller is pinned separately by test_merge_tree_s3/test.py::test_no_object_storage_read_when_evicting_index_marks, which fails on exactly that mutant.

Paired regression sweep of 357 minmax, skip-index, text-index, data-skipping, index-mark and packed tests, randomized: no test fails with this change that does not also fail without it.

One residual I did not close: narrowing the caller to the also-I/O-free getSubstreams is not caught, since the fixture's minmax part holds .idx2, which both return. Catching it needs a part holding a stale text .pos under a positions-disabled definition, and eviction is not assertable on such a part: only a part that never loaded can throw in the probe, and its index-mark cache is empty by construction.


Workflow [PR]
Sync PR [sync-upstream/pr/113454]

Version info

  • Merged into: 26.10.1.317-master (included in 26.10 and later)

`IMergeTreeDataPart::removeIndexMarksFromCache` runs from `clearCaches` during
part destruction and needs nothing but mark-cache key strings. It asked
`getDeserializedFormat`, i.e. "which substreams does THIS PART hold?", and for a
part whose skip indices are bundled into `skp_idx.packed` answering that performs
a real object-storage read:

  removeIndexMarksFromCache
    -> IMergeTreeIndex::getDeserializedFormat
    -> indexFileExistsInChecksums   (packed branch)
    -> IDataPartStorage::existsFile
    -> DataPartStorageOnDiskBase::getSkipIndicesPackedReader
    -> PackedFilesReader ctor -> disk->readFile(skp_idx.packed)

When the blob has been reclaimed while its metadata entry survives, that read
fails and the error is rethrown: `getSkipIndicesPackedReader` decides
swallow-vs-rethrow by re-checking `disk->existsFile`, which on object storage is
metadata-only and so still answers "present". The exception escapes into
`removeIfNeeded`'s `catch (...)` -> `tryLogCurrentException`, which re-emits the
whole `Code: 499 ... The specified key does not exist` text at `<Error>` level,
and it aborts the substream loop so the remaining keys are never evicted.

Ask the static, I/O-free question instead. `IMergeTreeIndex::getPotentialSubstreams`
returns every substream any version of the index could have written, taking
neither a part nor a storage, so it cannot do part I/O by construction:

  - default: `getSubstreams`
  - minmax: `.idx2` (v2) and legacy `.idx` (v1); `getDeserializedFormat` and
    `getAllSubstreamsInPart` already probe both, which is the evidence a part may
    hold either
  - text: `.idx` / `.dct` / `.pst` / `.pos`, with `.pos` unconditional. Whether a
    part holds `.pos` is a property of that part, not of the current
    `params.positions`, so the writer-side view would miss it after the index was
    redefined without positions

Removing an absent key is a no-op (`CacheBase::remove`), so the superset costs
nothing, and the computed keys are unchanged: the
`getStreamNameOrHash(..., checksums)` / `.value_or(full_stream_name)` /
`getMarksFilePath` chain is byte-identical to the one `loadIndexMarksToCache`
uses when inserting.

This deliberately touches neither `getSkipIndicesPackedReader` nor
`getArchiveReaderForFile`. Swallowing the 404 there instead would revert
7346f47 and e9f818e (PR ClickHouse#107995), which made that path fail
closed because callers treat a null reader as authoritative and could then
hardlink `skp_idx.packed` while dropping packed substreams.

One intentional behaviour change: a part with an invalidated system column
previously skipped eviction entirely, because `getDeserializedFormat` reports
nothing for it and the caller did `if (!index_format) continue;`. Its keys are
now evicted too, so those parts no longer leak marks.

Validated on an object-storage disk with the packed object deleted under a live
metadata entry: the eviction-frame error appears 3/3 runs before the change and
0/3 after, while the unrelated part-load error stays present in both arms as a
positive control that the object really is gone. A mutant that reverts only the
caller while keeping the new API still reproduces it 3/3, so the two unit tests
pin the API and this repro covers the caller.
…storage

The two unit tests added with the fix inspect getPotentialSubstreams directly and
pin the new API, not its caller. Reverting only the caller hunk in
IMergeTreeDataPart::removeIndexMarksFromCache back to getDeserializedFormat leaves
both of them green while the defect reproduces, so the user-visible half of the
change was unpinned.

The test creates a part whose minmax index is bundled into skp_idx.packed on an
object-storage disk, deletes that archive object while its metadata entry
survives, and reattaches so the archive probe is unseeded. Ordering is
load-bearing: DiskObjectStorage::existsFile is metadata-only, so with the object
gone the packed probe's re-check still answers "present" and rethrows the 404,
and the writer seeds the reader, so deleting the object after the reattach
resolves the probe and reproduces nothing.

The oracle keys on the removeIfNeeded stack frame rather than the error code. The
part-load path legitimately reads skp_idx.packed and is untouched here, so it
reports the missing key in both directions; a bare Code: 499 count is non-zero
either way. That count is asserted greater than zero as a positive control, so a
fixture that failed to delete the blob cannot pass silently.

Measured, each arm with its own build id asserted: passes on the fix; fails on
the caller-only mutant with assert 1 == 0 on the frame-keyed assertion after the
positive control has already passed; fails with the blob-deletion step removed,
on assert 0 > 0. The whole test_merge_tree_s3 module is 23 passed, 3 skipped.
@groeneai

groeneai commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator Author
Internal second-model review

Two review rounds. Round 1 approved the source change and bounced one test-coverage gap; round 2 reviewed the integration test that closed it. Findings from an independent reviewer pass plus a second model, each adjudicated against the code.

# Finding Verdict
❌ The caller hunk at IMergeTreeDataPart.cpp was pinned by nothing: both unit tests stay green when only that line is reverted, while the failure still reproduces. Agreed, fixed. Added test_merge_tree_s3/test.py::test_no_object_storage_read_when_evicting_index_marks. It fails on exactly that mutant (assert 1 == 0 on the frame-keyed assertion), and its own positive control had already passed on that arm, so the fixture genuinely reproduced there.
⚠️ The new test would also pass if eviction were skipped entirely, or if the archive read stayed but its exception were swallowed. Disagreed. Both mutants are outside this change. Removing the eviction call mutates clearCaches, which is unchanged here and is already covered by 04046_detach_attach_secondary_index_metadata_cache, a test written specifically to make this loop execute. Swallowing the 404 mutates getSkipIndicesPackedReader, untouched here and deliberately fail-closed by #107995; a test should not be built to tolerate reverting that.
⚠️ The test should also assert that a cache entry is removed. Disagreed, measured. The only part whose destruction-time probe can throw is one that never loaded: a loaded part keeps its archive reader, both reset sites clear the flag only when no reader exists, and the one site that drops a live reader has no callers. Such a part's index-mark cache is empty by construction. Three fixture shapes were measured and all read identically in both directions.
💡 Comments spell functions as f() where the repository asks for f. Agreed, not fixed here: three comment words, against a tree whose build id backs the whole both-directions measurement. Happy to do it on request.
⚠️ The validation notes described the call site as covered by a hand-run reproducer. Agreed, fixed in this description: it is covered by the committed test above.

Also checked: the substream carrier set is exactly the two indices with a getSubstreams override, the remaining calls in the eviction loop are all I/O-free (it binds the checksums-only overload where a storage-taking one exists), the cache keys are unchanged on both the insert and evict sides, and the oracle keys on the stack frame because the part-load path reports the same error code in both directions.

Session id: cron:clickhouse-review-slot-8:20260805-104200

@groeneai

groeneai commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate
# Check Result
a Deterministic repro? Yes. Packed skip-index part on an object-storage disk, the skp_idx.packed object deleted under its live metadata entry, DETACH/ATTACH so the archive probe is unseeded, then DROP TABLE ... SYNC. The eviction-frame Code: 499 appears in 3 of 3 runs before the change and 0 of 3 after. Deleting the object before the reattach is load-bearing: the writer seeds the reader, and skip_indices_packed_probed then short-circuits the probe. Each arm asserts SELECT lower(buildId()) against the binary's build id before recording a verdict.
b Root cause explained? Yes. removeIndexMarksFromCache needs only cache key strings, but asked getDeserializedFormat ("which substreams does this part hold?"). For a packed part that resolves through indexFileExistsInChecksums -> IDataPartStorage::existsFile -> getArchiveReaderForFile -> getSkipIndicesPackedReader -> disk->readFile(skp_idx.packed). The 404 is rethrown rather than swallowed because that function re-checks disk->existsFile, which on object storage is metadata-only and still answers "present"; the exception then reaches removeIfNeeded's catch (...) and is logged in full at <Error> level.
c Fix matches root cause? Yes. The caller asked a part-specific, I/O-requiring question where a static one suffices. getPotentialSubstreams takes neither a part nor a storage, so it cannot do part I/O by construction. Not a band-aid: the packed probe is untouched, so #107995's deliberate fail-close behaviour is preserved, and eviction is not skipped for packed parts.
d Test intent preserved, new tests added? Yes. No existing test weakened, no no-parallel and no no-random-* tag added. Two new unit tests in gtest_index_potential_substreams.cpp, each with a paired negative assertion on getSubstreams so that widening the writer-side view instead would not satisfy them. Plus a new integration test, test_merge_tree_s3/test.py::test_no_object_storage_read_when_evicting_index_marks, which covers the call site: it fails on a mutant that reverts only the IMergeTreeDataPart.cpp line while keeping the new API, and the two unit tests stay green on that mutant, so the two levels pin different properties.
e Demonstrated in both directions? Yes, on the exact binary being shipped. Before: eviction-frame Code: 499 present, 3 of 3. After: absent, 3 of 3. The unrelated part-load Code: 499 stays present in both arms (2 occurrences each) as a positive control that the object really is missing, so the transition is the change and not a setup difference.
f General across code paths? Yes. getSubstreams has exactly two overrides in the tree (minmax, text); both get a matching getPotentialSubstreams. The other seven registered index types inherit the single-.idx default, which is correct for them. Sibling eviction paths were checked and need no change: MergeTreeDataPartWide::removeMarksFromCache resolves names through the checksums-only overload, MergeTreeDataPartCompact uses a fixed name, and the vector-index and index-cache removals enumerate no substreams.
g General across inputs? Yes. The legacy-extension case is real, from two independent in-tree witnesses that both probe .idx2 and then .idx: MergeTreeIndexMinMax::getDeserializedFormat and getAllSubstreamsInPart, whose own comment notes a part may carry both. For text, getDeserializedFormat probes .pos on disk while getSubstreams gates it on the current positions parameter, which is why .pos is unconditional here. Each override has a mutant that fails its test: dropping the text override makes the positions test fail (3 substreams instead of 4), narrowing minmax to getSubstreams makes the other fail (1 instead of 2).
h Backward compatible? Yes. No setting added or changed, so no SettingsChangesHistory.cpp entry is owed. No on-disk format or serialization change. packed_skip_index_max_bytes is already experimental and defaults to 0, and is untouched.
i Invariants and contracts preserved? Yes. Only the loop's enumeration expression changed; the key computation is byte-identical to before and to the insert side in loadIndexMarksToCache, which is not touched at all. Both compute index_name + suffix, then getStreamNameOrHash(..., checksums), then fall back to the logical name, then getMarksFilePath, which is why that fallback is the correct key for packed substreams on both sides. The new method is const, allocates only, and does no I/O, so no error path changes.

Additional notes for reviewers:

The two levels of test pin different properties, and each is pinned by its own mutant. Reverting only the IMergeTreeDataPart.cpp line while keeping the new API leaves both unit tests passing and still reproduces the failure, and it is the new integration test that fails there. Conversely, narrowing either override fails its unit test and leaves the integration test passing, because a narrower enumeration only changes which absent keys get a no-op removal and cannot reintroduce a read.

The integration test asserts two things over a log window anchored before the reattach: that no Code: 499 escapes part destruction, keyed on the removeIfNeeded frame, and that the bare Code: 499 count is non-zero. The second is a positive control, so a fixture that failed to delete the blob cannot pass silently. With the deletion step removed the test fails on that control. Keying on the frame rather than the error code is necessary because the part-load path legitimately reads the archive and reports the missing key in both directions.

One intentional behaviour change: a part with an invalidated system column previously skipped eviction entirely, because getDeserializedFormat reports nothing for it and the caller did if (!index_format) continue;. Its keys are now evicted too, so such parts no longer leak marks. Removing an absent key is a no-op, so this is safe.

Regression: a paired sweep of 357 minmax, skip-index, text-index, data-skipping, index-mark and packed-skip-index tests with randomized settings, run on both binaries. No test fails with this change that does not also fail without it.

@groeneai

groeneai commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator Author

cc @CurtizJ @al13n321, could you review this? Mark-cache eviction runs from the part destructor but asked getDeserializedFormat, which for a part whose skip indices are packed into skp_idx.packed is answered by reading the archive, so a reclaimed blob under a live metadata entry made part destruction log a Code: 499 at <Error> level; a new I/O-free getPotentialSubstreams returns the superset of substreams instead, leaving the packed probe untouched.

@PedroTadim PedroTadim added the can be tested Allows running workflows for external contributors label Aug 5, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [1ec0eff]

Summary: ✅


AI Review

Summary

This PR removes part-destruction I/O from index-mark eviction by replacing per-part physical-format discovery with a no-I/O getPotentialSubstreams contract, then teaching the two non-trivial index layouts (minmax legacy .idx and text legacy .pos) to supply the required superset. The cache-key derivation remains aligned with the load path, and the added unit/integration coverage matches the intended regression. I did not find any actionable correctness, safety, or PR-metadata issues in the current diff.

Missing context / blind spots
  • ⚠️ Current CI for commit 1ec0eff6dfc79bbdefdbde84b453499aadab90f9 is still in progress, so this verdict is based on the current code, the tests in the diff, and the prior GitHub discussion rather than final completed CI.
Final Verdict

✅ No actionable findings at current HEAD.

LLVM Coverage Report

Metric Baseline Current Δ
Lines 87.20% 87.20% +0.00%
Functions 91.90% 91.90% +0.00%
Branches 79.40% 79.30% -0.10%

Changed lines: Changed C/C++ lines covered: 51/51 (100.00%) · Uncovered code

Full report · Diff report

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Aug 5, 2026
@CurtizJ CurtizJ self-assigned this Aug 5, 2026
The regression test added in this PR asserted its own positive control
(`Code: 499` must appear at all) and that control read 0 in CI, so the
arm never reached the assertion it exists to make.

The `Code: 499` the control counts is emitted while ATTACH loads the
part, reaching the archive through
`getColumnSize` -> `calculateColumnsAndSecondaryIndicesSizesOnDiskUnlocked`
-> `calculateSecondaryIndicesSizesOnDisk` -> `getAllSubstreamsInPart` ->
`indexFileExistsInChecksums` -> `existsFile` -> `getArchiveReaderForFile`.
The only call site that reaches that chain during load is
`IMergeTreeDataPart.cpp:2095`, which sits inside the `#ifndef NDEBUG`
block of `loadRowsCount`. The local build is `CMAKE_BUILD_TYPE=Debug` so
the block compiles in, while the `amd_asan_ubsan` job builds with
`-DCMAKE_BUILD_TYPE=None`, which `CMakeLists.txt` rewrites to
`RelWithDebInfo`, where CMake defines `NDEBUG` and the block is compiled
out. With no probe the part loads cleanly, is never detached as broken
and never destroyed, so the eviction path is not entered and both
assertions read 0 whether the fix is present or not: measured, the
caller-reverted mutant was not caught either.

`columns_and_secondary_indices_sizes_lazy_calculation = 0` runs the same
size accounting eagerly during part load from
`IMergeTreeDataPart.cpp:1412`, which is not `#ifndef`-gated, so the probe
fires on every build type. Precedent for using it this way:
`04341_packed_skip_indices_drop_size_object_storage.sql` and
`04401_mutate_all_columns_preserve_skip_index_checksums.sql`.

With the setting the test passes on the shipping binary and fails on a
binary with only the caller hunk reverted, failing there on the
frame-keyed oracle rather than the control, so the control still passes
on that arm and the caller stays pinned. The whole `test_merge_tree_s3`
module is 23 passed, 3 skipped, unchanged from before.

No source change: the five source files and both unit tests are
untouched.
@groeneai

groeneai commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - bca24b2

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task whose
fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Build (arm_release) / Post Hooks infra: build_profile_hook.py telemetry INSERT rejected with LogCluster query failed with code 500 after the build succeeded #113409 (external, open)

All 174 check-runs completed and Finish Workflow succeeded, and this is the only failing row on
this commit.

Two things on this commit look like failures and are not. The forty-four test_merge_tree_s3
entries live inside Bugfix validation (integration tests, amd64) and (aarch64), both of which
report success: they are the before-binary reproducing the defect this pull request fixes
(Failures: 22/26), which is what that check exists to demonstrate. Separately, Bugfix validation (unit tests) reports itself inconclusive because the merge-base and the checkout differ in
submodule state (contrib/musl), so it cannot build a before-binary at all - a harness limitation
tracked separately, and explicitly neither a reproduction nor a refutation.

Session id: cron:our-pr-ci-monitor:20260805-230000

ClickHouse#112484 renamed the virtual IMergeTreeIndex::getDeserializedFormat to
getPhysicalFormat and made getDeserializedFormat a non-virtual wrapper that adds
usability checks. That rewrote the same four sites this branch touches.

Resolution: keep master's rename everywhere (both overrides and the doc block),
keep this branch's getPotentialSubstreams beside it. The eviction call site drops
master's getPhysicalFormat call entirely, which is the point of the branch: that
call is what does object-storage I/O during part destruction. getPhysicalFormat
keeps its other caller in getDeserializedFormat, so nothing is orphaned.

getPotentialSubstreams remains a superset of every layout getPhysicalFormat can
report, for both overriding index types: minmax returns .idx2 and legacy .idx
against master's two probes, and text returns .idx/.dct/.pst/.pos against
master's v1/v2 pair. The evicted keys therefore still cover every key
loadIndexMarksToCache can insert, which is the contract that could break
silently.

Also folded master's NOTE on getSubstreams into one sentence naming both
methods, and updated the gtest comment to the new method name.
Two things the master merge left inconsistent, both comment-only.

The doc block introduced by ClickHouse#112484 names "evicting index marks" as the exemplar
caller that needs physical discovery, but this branch removes exactly that
caller: resolving what a part holds probes the part's storage, which must not
happen while destroying a part. Left as-is the comment invites reintroducing the
object-storage read it exists to prevent, so it now names the constraint and
points at getPotentialSubstreams instead.

CLAUDE.md also asks for `f` rather than `f()` when a comment refers to a
function itself; applied to the lines this branch writes. Pre-existing text
elsewhere in these files is left alone so the diff stays about the substream API.
@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - d8025db

Every failure below has an owner: a fixing PR (ours or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

CI is fully finished on this head: 177/177 check-runs completed, 0 incomplete, Config Workflow
and Finish Workflow both success, three failing jobs.

Check / test Reason Owner / fixing PR
Stress test (arm_msan) / Logical error Equal values are not contiguous within the range assumed to be sorted (STID 2508-348f) trunk bug #113242 (ours, open)
Bugfix validation (unit tests) harness gap: the before-binary cannot COMPILE the overlaid gtest, so the job reports inconclusive rather than a verdict on the regression case a fix task owns this and is being worked at full effort - the fixing-PR link will follow on this PR
Build profile diff runner infra: gh auth login --with-token exhausted its 4-attempt retry ladder against api.github.com adjudicated and closed out at #113939 (comment 5319436737): no fixing PR will follow

None of the three is caused by this PR.

The arm_msan abort is the Merge-child order-breaking-cast mechanism #113242 fixes. The failing
query is SELECT count() FROM (SELECT DISTINCT s FROM merge_distinct__fuzz_3 ORDER BY s ASC LIMIT 100)
with optimize_distinct_in_order = 1, where merge_distinct__fuzz_3 is ENGINE = Merge declaring
s UInt32 NULL over a source table declaring s String. That conversion does not preserve order, so
DistinctSortedStreamTransform is handed a stream that is not sorted on s and its
checkEqualRangeEndAssumeSorted assertion fires. Breadth over 30 days: 11 hits across 11 distinct
unrelated PRs, 0 on master, first seen 2026-07-27.

Bugfix validation (unit tests) is not a test failure. The overlaid gtest references
getPotentialSubstreams, which this PR adds, so it cannot compile against the merge-base tree by
construction (git grep -c getPotentialSubstreams at the merge-base is 0). The check is
allow_failure and reports ERROR, which never gates in new_tests_check.py. The coverage is
machine-validated by the other arm: Bugfix validation (integration tests, amd64) and (aarch64)
are both success, reproducing the defect on the before-binary.

Build profile diff died 22 s in, before its script ran, with GH auth failed - required by job. I
investigated this signature separately and posted the conclusion on #113939: the lambda mint
succeeded, then gh auth login spent all four retries against api.github.com during a GitHub-side
outage. All 14 affected jobs burned the full ladder and none recovered on a later attempt, so there is
no praktika change that would have saved them, and the job reports ERROR rather than a false green.

Mergeable Check reports Failed: Stress test (arm_msan), i.e. the one trunk-bug row above.

Session id: cron:our-pr-ci-monitor:20260817-213000

@groeneai groeneai added the groeneai-origin-oranjeai PR origin: delegated from the OranjeAI sibling fleet label Aug 19, 2026
…ache-eviction-object-storage-io

# Conflicts:
#	src/Storages/MergeTree/MergeTreeIndexMinMax.h
#	src/Storages/MergeTree/MergeTreeIndexText.cpp
#	src/Storages/MergeTree/MergeTreeIndexText.h
Eviction no longer asks getPhysicalFormat what a part holds, so the sentence
naming ~IMergeTreeDataPart as a caller of the part-less overload described a
call site this change removes. Left in place it reads as licence to probe the
part's storage from a destructor again.
Wrap literal class, function and setting names and log-message excerpts in
inline code blocks, and write a function name without parentheses, per
.claude/CLAUDE.md. Comment-only.

Also drop the same stale destructor clause from the helper's comment in
MergeTreeIndices.cpp that the previous commit removed from the header.
@clickhouse-gh

clickhouse-gh Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 1ec0eff6d with master 86a433ccd (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes
Binary Master PR Δ
programs/clickhouse-stripped 710.09 MiB 707.05 MiB -3.04 MiB (-0.43%)

Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction.

Compile time of recompiled translation units

289 translation units recompiled, 2775 s compile time in total, 289 of them have a recent master baseline.

Job report

@clickhouse-gh clickhouse-gh Bot added the comp-mergetree MergeTree* family: parts, merges, primary index, column statistics, background data transformation. label Sep 4, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Dear @CurtizJ, you haven't been active on this PR for 30 days. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself.

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good change, thanks!

@alexey-milovidov alexey-milovidov self-assigned this Sep 21, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Sep 21, 2026
Merged via the queue into ClickHouse:master with commit ca1ebbf Sep 21, 2026
179 checks passed
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 21, 2026
clickgapai added a commit to clickgapai/ClickHouse that referenced this pull request Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-mergetree MergeTree* family: parts, merges, primary index, column statistics, background data transformation. groeneai-origin-oranjeai PR origin: delegated from the OranjeAI sibling fleet pr-bugfix Pull request with bugfix, not backported by default pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants