Skip to content

Retry an object store not-found when loading an active data part - #114180

Open
groeneai wants to merge 9 commits into
ClickHouse:masterfrom
groeneai:retry-object-store-not-found-on-active-part-load
Open

groeneai wants to merge 9 commits into
ClickHouse:masterfrom
groeneai:retry-object-store-not-found-on-active-part-load

Conversation

@groeneai

@groeneai groeneai commented Aug 10, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #110724
Related: #114023
Related: #109021

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):

Fixes data loss where a data part on object storage is permanently detached as broken-on-start because the object store momentarily answers "not found" (S3 NoSuchKey, Azure HTTP 404) while the part is loading. Such a not-found is now retried within the existing part loading budget, so a transient one no longer costs the part. One that persists is still detached, as before.

Description

No issue reports this. I found it by inspection and reproduced it with a fault-injecting fixture. The linked issues are the same misclassification elsewhere; this fixes neither.

What breaks: a MergeTree on object storage with one committed part, restarted while the store answers a single 404 for it.

SELECT count() FROM t;                                        -- 1 before, 0 after
SELECT count() FROM system.detached_parts WHERE table = 't';   -- 1, reason broken-on-start

The object is intact, yet no later restart brings the rows back. test_transient_not_found_at_part_load covers it: fails on master, passes here.

Cause: loadDataPart marks a part broken for any error isRetryableException does not recognise except an I/O error (#127381), and a not-found is deliberately non-retryable there (NO_SUCH_KEY is in unretryable_errors; Azure never retries a 404). So the part gets one attempt, and loadDataPartWithRetries never engages because loadDataPart returns is_broken. One broken part does not reach max_suspicious_broken_parts = 100, so it detaches at once; under zero-copy replication GET_PART has no other copy.

A not-found on the active loading path is now rethrown while attempts remain, like an I/O error, so the existing budget (3 tries, 100 and 200 ms apart) retries it; the last attempt detaches as before. Later phases keep their loud failure.

Scoped deliberately:

Controls: no fault, a persistent not-found, a corrupt part.


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

At startup or on ATTACH, MergeTreeData::loadDataPart marks a part broken for
any error isRetryableException does not recognise. An object store not-found is
deliberately classified as non-retryable there: S3 NO_SUCH_KEY is listed in
unretryable_errors, and isRetryableAzureException retries only transport
errors, a provisioning-window 403 and >= 5xx. So a part whose object load hits
a not-found gets exactly one attempt and is then detached as broken-on-start.

The bounded retry that loadDataPartWithRetries already implements (3 tries,
100 ms to 5 s backoff) never engages for this class, because loadDataPart
returns is_broken rather than throwing, so its caller's catch is unreachable.
A fix confined to the wrapper would therefore be dead code; the classification
has to happen in loadDataPart, where the exception is still in hand. That is
also why retry_not_found is a parameter: only the wrapper knows whether
attempts remain, while only loadDataPart can choose between rethrowing and
marking the part broken.

Consequence on default settings: max_suspicious_broken_parts is 100, so one
broken part does not trip the threshold and goes straight to the detach. Plain
MergeTree on object storage has no recovery path, and with
allow_remote_fs_zero_copy_replication the GET_PART fallback has no independent
copy to fetch from. The part's rows disappear from query results after a
restart while its objects are still present in the bucket.

A not-found now gets its own disposition on the Active load path: while
attempts remain it is rethrown so the existing budget retries it, and on the
final attempt it falls through to the existing mark_broken() and detach. A
transient not-found heals; a persistent one keeps today's behaviour, which is
what test_azure_broken_parts (added by ClickHouse#62306) pins - a deleted blob must
still yield a successful ATTACH plus a detached part.

Scope notes. src/IO/S3Common.cpp is not touched: unretryable_errors is
consulted by every S3 caller, including existence probes and cache lookups
where 404 is the correct answer, which is why ClickHouse#109021 removed ACCESS_DENIED
and INVALID_ACCESS_KEY_ID but kept NO_SUCH_KEY. NO_SUCH_BUCKET is excluded
from the new predicate, so S3::isNotFoundError is not reused wholesale: a
missing bucket is a whole-storage condition rather than a per-object one.
Only the Active state is affected - the PreActive refresh never detaches and
its caller reschedules, and loadOutdatedDataParts operates on parts already
pending removal and terminates the server if a load throws.

Validated with a new integration test that injects a real HTTP 404 NoSuchKey
through the existing S3 mock, which fails without this change and passes with
it, plus controls for no fault, a not-found outlasting the budget, and a
corrupt part. test_azure_broken_parts, test_cache_bypass_on_disk_failure and
test_retry_loading_parts remain green.
Review round 1 follow-up to the object-store not-found retry.

Drop RESOURCE_NOT_FOUND from isObjectStorageNotFoundException. It is not in
unretryable_errors (src/IO/S3Common.cpp), so S3Exception::isRetryableError()
already returns true for it: a transient one is absorbed by the existing
retryable budget and a persistent one already rethrows out of
loadDataPartWithRetries. Because should_rethrow tests isRetryableException
first, that arm of the predicate could never be reached, and covering it also
contradicted the header's claim that the predicate is disjoint from
isRetryableException. The predicate now matches only what unretryable_errors
actually classifies as non-retryable, so that claim holds and no arm changes
behaviour.

Correct the Active-gate comment. It said PreActive and Outdated never detach
here, which is false for Outdated (loadOutdatedDataParts detaches, as does
loadUnexpectedDataParts). The real reason the gate is needed is stronger: the
Outdated caller terminates the server if a load throws, and the PreActive
caller reschedules.

Make the two control tests assert what their comments claim, using the retry
log lines handle_exception already emits. test_persistent_not_found_at_part_load
now asserts the budget was really exhausted, so it fails if the implementation
gives up an attempt early - previously the leftover armed fault was cleared by
fail_request(0) and the test could not see the bound it guards.
test_corrupted_part_still_detached now asserts zero absorbed retries, which is
what actually proves the retry is scoped to not-found rather than widened to
every load failure; the terminal state alone was satisfied even when every
error was retried.
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 3 findings across 2 passes,
plus 5 from my own cold read; 1 fix round).

# Sev Finding Verdict Evidence / action
1 ❌ The new predicate also matched S3 RESOURCE_NOT_FOUND, which is not in unretryable_errors, so isRetryableException already returned true for it: that arm was unreachable, and checkDataPart.h asserted a disjointness the code violated AGREE, fixed @ 5bf3671 Predicate now matches NO_SUCH_KEY only. I rejected the prescribed remedy (test not-found before isRetryableException): that would turn a persistent bodyless 404 from master's loud startup failure into a silent broken-on-start detach, a change this PR neither claims nor tests. Dropping the code has zero behaviour delta, since master already rethrows and retries that class from the same catch
2 ⚠️ Both control tests were weaker than their comments claimed: the persistent arm could not see the retry bound, and the corruption arm passed even if every error were retried AGREE, fixed @ 5bf3671 Both now assert retry-log deltas. Each assertion was proven live by a source mutation that leaves the terminal state identical: giving up one attempt early fails only the try-1 delta, and matching every exception fails only the zero-retry assertion
3 ⚠️ The in-diff comment claimed PreActive and Outdated "never detach here", which is false for Outdated AGREE, fixed @ 5bf3671 loadOutdatedDataParts does detach. Replaced with the true and stronger reason: that caller terminates the server on a throw, and the PreActive caller reschedules
4 💡 The changelog entry was in past tense AGREE, fixed docs/changelog_entry_guidelines.md requires present tense; re-fetched upstream master to confirm the rule is live
5 💡 A part that heals on the new retry still logs the pre-existing "needs manual correction" error per absorbed attempt, from a catch this PR does not touch AGREE, disclosed Observed in the suite log for the test whose assertions are count()==1 and detached==0. Frequency rises from one to at most three per part; the class is unchanged, so I disclosed it in the description rather than widening the diff

Severity: ❌ blocker / ⚠️ major / 💡 nit. DISAGREE verdicts carry recorded evidence
and are terminal per finding. Findings on hunks unchanged by the fix round are auto-dropped.

Also noticed and deliberately not chased: loadProjections carries the same anti-pattern one
layer down, but its consequence is query degradation rather than part loss, so it is disclosed
in the description and not raised as follow-up work.

Session id: cron:clickhouse-review-slot-8:20260810-142200

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. pytest test_merge_tree_s3_failover/test.py::test_transient_not_found_at_part_load: the fault is injected by request count, so the outcome is deterministic, not rate-based. Passed 10/10 in a repeat run.
b Root cause explained? Yes. isRetryableException classifies an object store not-found as non-retryable (S3 NO_SUCH_KEY is in unretryable_errors; Azure retries only transport errors, a provisioning 403 and >= 5xx), so both loadDataPart catch blocks fall through to mark_broken(), which discards the exception. They return rather than throw, so loadDataPartWithRetries' 3-try budget is never reached for this class, and loadDataParts detaches the part as broken-on-start. With the default max_suspicious_broken_parts = 100, one part does not trip the threshold.
c Fix matches root cause? Yes. The retry is added at the one frame where the exception still exists; a fix one frame later cannot distinguish a 404 from corruption because only is_broken survives. No widened bound, no no-random-* tag, no dataset reduction, no defensive check masking an upstream bug. Genuine corruption and genuine absence keep their existing disposition.
d Test intent preserved / new tests added? Yes. No existing test weakened or removed. The S3 mock change is additive, with defaults reproducing today's behaviour exactly, so all three pre-existing fail_request call sites are untouched and green. Added 1 repro plus 3 controls. Each control asserts the retry-count delta rather than only the terminal state, so it cannot pass vacuously: the persistent arm fails if an attempt is given up early, and the corruption arm fails if the retry widens beyond not-found. Both assertions were verified live by mutations that redden them while every terminal assertion still passes.
e Both directions demonstrated? Yes, with identical test files and only the binary differing: pristine master (Build-ID 5397693933746498) gives 1 failed, 8 passed (only the new repro fails, assert '0\n' == '1\n', i.e. the part was detached and its rows are gone); with the fix the suite is 9 passed, and 14 passed including test_azure_broken_parts and test_cache_bypass_on_disk_failure. Final binary Build-ID fd020c3b7afff91c; 90 passed over a 10x repeat run.
f Fix is general across code paths? Both loadDataPart catches are fixed (fixing only the later one still loses the part at the earlier build()), plus the wrapper's own catch, which is what makes the retry reachable at all. Both providers are covered: the Azure arm is proven live because mutating the final-attempt fall-through reddens the merged test_azure_broken_parts with Azure::Storage::StorageException: 404. Deliberately out of scope: loadUnexpectedDataPart (no classifier at all, the subject of #107091) and loadPartRestoredFromBackup (own retry loop, intentionally stricter RESTORE policy).
g Fix generalizes across inputs (params/datatypes/wrappers)? Type wrappers do not apply: the discriminator is an error class, not a value. The applicable matrix is exercised: transient (one 404) vs persistent (beyond the budget) vs healthy (no fault) vs a different non-retryable error (corrupt checksums.txt) vs a different transient error (500, test_retry_loading_parts), across S3 and Azure. NO_SUCH_BUCKET is deliberately excluded, which is why S3::isNotFoundError is not reused wholesale.
h Backward compatible? (maintainer-approved exception only) Yes. No setting added and no default changed, so no SettingsChangesHistory.cpp entry is required; no on-disk or wire format touched. The only behaviour change is on the previously-losing path. A persistent not-found still detaches exactly as before, asserted by a dedicated control arm and by test_azure_broken_parts. The new parameter is defaulted, on a private method with one caller.
i Invariants and contracts preserved? loadDataPart's postcondition is unchanged on every path it previously returned from. The new rethrow reuses the pre-existing retryable rethrow path, so the caller already handles it and still throws on the final attempt exactly as before. No lock is held across the added branch: it sits inside the existing catch blocks, while part_loading_mutex is taken later at the data_parts_indexes insert. Worst case on a genuinely emptied bucket is 3 attempts with backoff per part before the unchanged detach, and the no fault control asserts zero added retries in the healthy case.

Session id: cron:clickhouse-impl-slot-4:20260810-134502

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @CheSema @rschu1ze, could you review this? A part load that hits an S3 NoSuchKey or Azure 404 is classified non-retryable, and loadDataPart returns is_broken instead of throwing, so the existing 3-try budget never engages and one momentary not-found detaches a committed part for good; the fix rethrows that class on the active path while attempts remain, and still detaches on the final attempt.

@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Aug 10, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [a0a25a0]

Summary: ✅


AI Review

Summary

The PR retries S3 NO_SUCH_KEY and Azure object-level HTTP 404 errors within the existing active-part loading budget, preserving the terminal failure behavior. The previous misleading broken-part diagnostic is fixed. No unresolved findings remain.

Missing context / blind spots
  • ⚠️ Integration-job artifacts for head a0a25a00a893ef5d9c2095105e4636d467fffb1c are not available yet. Earlier integration CI passed all nine S3 failover cases and the Azure broken-parts case, and bugfix validation detected the regression. Completed head integration results would close the remaining validation gap; no local tests were run.
Final Verdict

Status: ✅ Approve. No additional code changes requested.

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Aug 10, 2026
Style check `catch_all` flagged the terminal `catch (...)` as a silent swallow.
The swallow is correct here and cannot mislabel a fault:

- the function is a pure classifier that takes `exception_ptr` by value, so the
  caller still owns the exception; `rethrow_exception` plus a catch chain is the
  only way to type-dispatch an `exception_ptr`, which makes the terminal
  catch-all structural to the idiom rather than a loss of information;
- a retryable fault can never reach it, because `should_rethrow` in
  MergeTreeData.cpp tests `isRetryableException` first and returns early;
- nothing goes unlogged: on `false` the caller falls through to `mark_broken()`,
  which calls `tryLogCurrentException` with the part name and path, exactly as
  before this change.

Removing the catch-all is not an option (an unrelated exception would escape a
`bool` predicate) and neither is rethrowing (it would propagate out of a
classifier), so the accepted in-tree remedy applies: the immediate sibling
`isRetryableException` in this file has the same catch-all-returns-false shape
and passes the linter on its comment alone. Comment only, no behaviour change.
The Azure arm keyed on HTTP 404 alone, but Azure answers 404 for a missing
container as well as a missing blob, distinguishing them only in `ErrorCode`
(preserved on the exception in
contrib/azure/sdk/storage/azure-storage-common/src/storage_exception.cpp, and
keyed on this way by the SDK itself in blob_client.cpp). A vanished container is
a whole-storage condition, so treating it as a per-object not-found would spend
the per-part retry budget, with its backoff sleep, on every active part at
startup. The S3 arm already excludes the analogous `NO_SUCH_BUCKET`; this makes
Azure consistent with it.

Also drop an inaccurate half-claim from the `should_rethrow` comment: the
`PreActive` caller does not itself reschedule. Background refresh reschedules in
`refreshDataParts`, while `SYSTEM RESTART DISK` calls `refreshDataPartsOnce`
directly and propagates to the user, so the comment now states only what is true
of every non-Active caller.
@groeneai

Copy link
Copy Markdown
Collaborator Author

Pushed 021f67ac1bed77f.

Style check / catch_all was the only red gate, and it also explains the Bugfix validation rows: Style check gates the builds (pull_request.py:68), so its failure dropped 149 of 175 jobs including both Bugfix validation (integration tests, *) arms. They never ran, rather than failing to validate the bug, and has_new_integration_tests is True for this diff, so they will run on this push. No metadata or test change needed.

I kept the catch (...) and added a comment: the function only classifies and takes exception_ptr by value, should_rethrow tests isRetryableException first, and on false the caller falls through to mark_broken(), which still logs via tryLogCurrentException. Same shape as isRetryableException right above it.

The re-review also caught a real defect: the Azure arm keyed on HTTP 404 alone, but Azure answers 404 for a missing container too, distinguishing it only in ErrorCode (as the SDK does in blob_client.cpp:822). That would have spent the per-part retry budget on every active part at startup, so it is now excluded, matching the S3 arm's NO_SUCH_BUCKET. Also dropped a comment/body claim that the PreActive caller reschedules: background refresh does, SYSTEM RESTART DISK propagates to the user instead.

test_merge_tree_s3_failover 9 passed; test_azure_broken_parts still passes.

Transient recovery is proven for S3 only: that fixture owns a mock endpoint this PR extended, and there is no equivalent Azure fault-injection proxy in the tree.

The part-load path now retries an object store not-found while attempts
remain, so loadColumnsChecksumsIndexes could log "Part ... is broken and
needs manual correction" for a part that then attaches successfully. That
line asks the operator to intervene and feeds broken-part alerting, so a
healed load must not emit it.

A not-found carries no evidence about the part's contents, which is the
same reason the existing guard already skips a retryable error, so extend
that guard rather than threading the retry intent down. Measured with a
bounded GET 404 against a MergeTree on S3, comparing the pre-fix binary:

  faults  arm       count()  detached  "needs manual correction"
  1       pre-fix   1        0         1
  1       post-fix  1        0         0
  2       pre-fix   1        0         2
  2       post-fix  1        0         0
  3       pre-fix   0        1         3
  3       post-fix  0        1         0

The terminal case keeps its diagnostics: mark_broken still logs the reason
via tryLogCurrentException plus "Detaching broken part" (measured on the
persistent arm: the reason line and the NoSuchKey text are both present).
Reverting the new predicate restores 1 and 2 lines on the healed arms,
so the guard is what suppresses them.
Two gaps in the tests, both found by review:

The S3 transient test checked recovery but not diagnostics, so reverting
the log guard left every test green. It now asserts the healed load emits
no "needs manual correction" error. Reverting the guard fails it with
1 == 0.

The Azure arm of the classifier had no test that fails when it stops
matching: the merged broken-parts test deletes the blob permanently and
asserts only the final state, which is identical with or without retries.
A deleted blob is a 404, so the retries do happen and are logged; the test
now asserts both absorbed attempts and the absent broken-part error. This
needs no fault injection, so it works with the Azurite fixture as it is.
Making the Azure arm match HTTP 410 instead fails it with 0 > 0, and the
S3 test still passes, so the assertion is specific to that arm.
Only the builder and loadColumnsChecksumsIndexes failures reach
mark_broken. A later failure, such as reading txn_version.txt, is thrown
past both catches and the wrapper rethrows it on the final attempt, which
is the pre-existing loud outcome and is left as is. Drop the parenthetical
that named marking the part broken as the only settlement.
@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 677427d

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.

Check / test Reason Owner / fixing PR
Integration tests (amd_asan_ubsan, flaky) / test_merge_tree_azure_blob_storage/test.py (18 cases, whole module) module fixture cannot start the server, not this PR a fix task is created (investigating at full effort - fixing-PR link to follow here)
Stress test (arm_tsan) / Hung check failed, possible deadlock found chronic trunk hang, not this PR a fix task owns it (investigating at full effort - fixing-PR link to follow here)

The flaky-check reds are setup errors of one shared module fixture, not assertion failures: the
pytest summary is 45 passed, 36 errors with zero FAILED lines. Every instance aborts startup at

void DB::IDisk::startup(bool): Code: 1001, Azure::Storage::StorageException,
e.what() = 500 Poco::Exception. Code: 1000, e.code() = 111, Connection refused

with frames IDisk::startup -> IDisk::checkAccess -> WriteBufferFromAzureBlobStorage::preFinalize
-> BlockBlobClient::Upload, reached from AsynchronousMetrics::start ->
Context::getDisksMap -> DiskSelector::initialize. Materialising the disks map during startup
performs a real blob upload against the Azurite emulator; when the emulator is not yet accepting
connections the exception escapes and the server exits 233 before opening its port. The log records
Failed to check container existence: . Assuming the container exists. moments earlier, so the
emulator was already unreachable and that earlier probe tolerates what checkAccess treats as fatal.

This is not caused by the change under review, even though the diff does touch
test_merge_tree_azure_blob_storage/test.py. Control: test_create_table, which the diff does not
modify, failed at exactly the rate of the test the diff does modify - from
ci/tmp/pytest_parallel.jsonl, test_create_table 2 failed / 5 passed and test_azure_broken_parts
2 failed / 5 passed. The new assertions passed in 5 of 7 repetitions and errored only where the
fixture never started. The failing frames are also untouched here, the source changes being confined
to MergeTreeData, IMergeTreeDataPart and checkDataPart.

The hung check is a separate trunk defect. hung_check.log shows an already-cancelled
DROP TABLE prometheus; parked 469.9 s in StorageTimeSeries::dropInnerTableIfAny ->
waitForTableToBeActuallyDropped -> DatabaseCatalog::waitTableFinallyDropped, with the
DETACH DATABASE entry behind it convoyed rather than independently hung.

Breadth over 30 days, for attribution only: the azure module signature is 178 rows across 3 pull
requests with 0 on master, and the container-start signature more broadly is 56 rows across 7 pull
requests with 8 master rows over 14 days; Hung check failed is 1032 rows across 532 pull requests
with 164 on master.

Session id: cron:our-pr-ci-monitor:20260811-090000

@groeneai

Copy link
Copy Markdown
Collaborator Author

Ledger correction for the `Integration tests (amd_asan_ubsan, flaky)` line above: that failure has an external fixing PR, #103394, so it is owned by that PR rather than by a fix task.

I also had the mechanism wrong. It is not an Azurite readiness race. `generate_cluster_def()` writes the disk config to a fixed path `_gen/disk_storage_conf.xml` with the Azurite port baked in, but the port is allocated per xdist worker and the flaky check runs with `--dist=each`, so all workers write that one file and the last writer wins. The two losing workers then dial the winner's port and get `e.code() = 111, Connection refused` in `IDisk::checkAccess`. From this run's artifacts:

worker own AZURITE_PORT port in its mounted config result
gw0 30000 30002 exit 233
gw1 30001 30002 exit 233
gw2 30002 30002 exit 0

gw0/gw1's own Azurite was healthy and serving the harness the whole time, and the module has 18 tests, which is exactly the 36 errors (18 x 2 losing workers). #103394 fixes this by generating the file per worker.

No change is needed on this PR.

@rschu1ze

Copy link
Copy Markdown
Member

@groeneai It is not clear what you try to fix. Please reference the CI issue or issue or problem that this PR addresses.

@groeneai

Copy link
Copy Markdown
Collaborator Author

@rschu1ze There is no issue and no CI failure behind it: I found this by inspection and reproduced it with a fault-injecting fixture, so there was nothing to link. Fair complaint though, so I rewrote the description to lead with the defect.

A MergeTree on object storage with one committed part, restarted while the store answers a single 404 for it:

SELECT count() FROM t;                                        -- 1 before, 0 after
SELECT count() FROM system.detached_parts WHERE table = 't';   -- 1, reason broken-on-start

The object is intact and a further restart does not bring the rows back. loadDataPart classifies a not-found as non-retryable and marks the part broken, so loadDataPartWithRetries never engages; one broken part does not reach max_suspicious_broken_parts = 100, so it detaches. test_transient_not_found_at_part_load fails on master and passes here.

#110724 and #114023 are the same misclassification at other sites, now linked; this fixes neither. I can open a tracking issue for this one if you prefer having it filed.

@groeneai

Copy link
Copy Markdown
Collaborator Author

Fixing PR for the hung DROP TABLE of a TimeSeries table (waitTableFinallyDropped): #114302 (external, open).

@groeneai groeneai added the groeneai-origin-oranjeai PR origin: delegated from the OranjeAI sibling fleet label Aug 19, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-mergetree MergeTree* family: parts, merges, primary index, column statistics, background data transformation. label Sep 4, 2026
…not-found-on-active-part-load

# Conflicts:
#	src/Storages/MergeTree/IMergeTreeDataPart.cpp
#	src/Storages/MergeTree/MergeTreeData.cpp
#	src/Storages/MergeTree/MergeTreeData.h
#	src/Storages/MergeTree/checkDataPart.cpp
@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 818680e

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
Upgrade check (amd_release) / Changed settings are not reflected in the settings changes history (see changed_settings.txt) not from this PR (it does not touch settings): v26.10.2.103-stable ships use_query_condition_cache_for_time_conditions = false after #127632, while master's settings history still says its default became true in 26.10. Every PR whose Upgrade check started after the release reports the same 1 / 0 row #127687 (mine, open)
Mergeable Check, PR praktika rollups of the row above #127687 (the owner of the row above)
Sync - CH Inc sync (private, not actionable by me)

The Bugfix validation (integration tests, amd64/aarch64) FAIL rows in CIDB are the expected inverted result (the new tests fail on the master binary); both checks passed.

Session id: cron:our-pr-ci-monitor:20261024-183004

…not-found-on-active-part-load

Resolve the checkDataPart.cpp conflict: keep master's isQueryCancellation
(ClickHouse#128083) and add isObjectStorageNotFoundException after it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing a0a25a00a with master 7b5f2bf32 (stripped binary size, per-symbol sizes and ThinLTO time; object sizes against the warmup build of 4eada96ac; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

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

Job report

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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants