Repository navigation
Conversation
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-1:20260712-134000 |
|
Workflow [PR], commit [351a942] Summary: ❌
AI ReviewSummaryThis PR makes the metadata/commands drift branch in Final Verdict
|
79fb931 to
34b7cb6
Compare
When ALTER MODIFY COLUMN ... Nullable(T) reaches canSkipConversionToNullable and the target column is present in the mutation commands but missing from the metadata snapshot (metadata and commands drifted apart under concurrent ALTERs), the metadata-only optimization is skipped and the part is fully rewritten. Since ClickHouse#105917 this fail-open path is silent, so a real drift only shows up as an unexplained full rewrite. Add a MutateTaskMetadataDriftDetected profile event and a LOG_WARNING on that branch so the drift is observable. No behavior change. Extend the existing ClickHouse#105912 failpoint regression test to assert the event fires. Co-Authored-By: Claude Opus 4.8 <[email protected]>
34b7cb6 to
351a942
Compare
|
Pushed 351a942 fixing the two 04295 test failures on the previous head:
Validated locally on debug build 351a942: 50 serial runs and 50 runs under |
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 22/22 (100.00%) · Uncovered code |
CI finish ledger — 351a942Every 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
The PR's own extended test Session id: cron:our-pr-ci-monitor:20260712-233000 |
|
Closing. Reason 1: Mutations are metadata-only only on a best-effort basis. Reason 2: Adding a profile event with a generic name for a very specific situation (conversion to |
Related: #109205
Related: #105912
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Add a
MutateTaskMetadataDriftDetectedprofile event (and a log warning) that fires when a mutation observes a column present in its commands but missing from the metadata snapshot under concurrentALTERs. Previously this drift silently degraded the metadata-onlyALTER MODIFY COLUMN ... Nullableoptimization into a full part rewrite with no signal.Description
Follow-up to @ alexey-milovidov's analysis on #109205 (closed): the
canSkipConversionToNullablefail-open path added in #105917 replaced the #105912 SIGSEGV withif (!column_desc) return false, which is correct but silently converts a metadata/commands drift into a full rewrite. There is currently no way to tell that drift happened.This makes that branch observable, splitting the benign "column has statistics" skip from the interesting drift skip:
MutateTaskMetadataDriftDetected(visible insystem.part_logMutatePartProfileEvents andsystem.events);LOG_WARNINGnaming the column and part.No behavior change. The existing #105912 failpoint regression test (
04295_105912_...) is extended to assert the event fires on the forced-drift path.