Repository navigation
Upgrade check: let the previous release re-attach the projections with positional arguments its tests create - #128105
Conversation
…sitional arguments Tests of the previous release (03758, 05182, 05318) define a projection with `GROUP BY 1` under `SET enable_positional_arguments_for_projections = 1`, and `--fake-drop` keeps the table in the shared stress database. A table is loaded with the global context (ClickHouse#104430), so the setting only counts when it is in the default profile, and the previous-release server does not have it there: an `ATTACH DATABASE` (01160_table_dependencies does detach/attach x10) fails with NOT_AN_AGGREGATE and leaves the whole database detached (a server startup instead keeps the table and skips the projection with an <Error>). The pre-upgrade kill step only sees attached databases, so a broken mutation of that database (here the replicated arm of 05259_mutation_of_part_without_table_columns, cut before its KILL MUTATION) survives, the upgraded server re-attaches the database (its profile has the setting via compatibility.xml) and retries the mutation for the whole post-upgrade window, which the <Error> scan reports. Write the setting into a users.d file before the previous release starts. The second `configure` keeps users.d (install.sh only recreates config.d), so the upgraded server reads the same file and the line in compatibility.xml is redundant; remove it. Failing run: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=108078&sha=bf6f312dbb8f2178fd75d1e683ad5a2778dc0296&name_0=PR&name_1=Upgrade%20check%20%28amd_release%29 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus an own cold review (2 PR-description nits, both applied before the gate ran).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261029-042900 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-6:20261029-040200 |
|
cc @leshikus, could you review this and add the |
|
Workflow [PR], commit [816b3ba] Summary: ✅ AI ReviewSummaryReviewed #128105 at Missing context / blind spots
Final VerdictStatus: ✅ Approve |
CI finish ledger - ef523c8Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
Session id: cron:our-pr-ci-monitor:20261029-140003 |
Related: #104430
Related: #124532
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Upgrade check (amd_release)reds onError message in clickhouse-server.logon unrelated PRs. Two leftovers of the previous release's tests cause it;--fake-dropkeeps their tables in the shared stress databases.05259_mutation_of_part_without_table_columns, although the pre-upgrade kill step reported none.05182_projection_positional_arguments_with_analyzercreates a projection withGROUP BY 1underSET enable_positional_arguments_for_projections = 1. A table is loaded with the global context (Tables with positional-argument projections cannot be attached whenenable_positional_arguments_for_projections=falsebecause ATTACH uses global context, ignoring session settings #104430), i.e. the default profile, where only the upgraded server has the setting (compatibility.xml). So on the previous release01160_table_dependencies'ATTACH DATABASEfails withNOT_AN_AGGREGATEand leaves the database detached, out of the kill step's sight.04627_lwd_rebuild_normal_projection_no_wherecreatesPROJECTION p (SELECT count() GROUP BY 0)without the setting, so0is a constant key. The upgraded server reads it as a position and skips the projection (Positional argument number 0 is out of bounds).Change: write the setting into a
users.dfile before the previous release starts. The secondconfigurekeepsusers.d, so the upgraded server reads the same file and the line incompatibility.xmlis removed. Both servers then load projections with the same setting, and the previous release already rejects theCREATEof case 2. My open #124532 (restart the previous release before the kill step) would also bring the database of case 1 back for the kill step.Validation (local rig: 26.10.2.103 tgz as the previous release, master build as the upgraded one, Keeper, the script's own kill/drain fragment, the tests' own statements): case 1 reproduces in 3/3 runs without the change; with it 4/4 runs keep the database attached, the kill step kills the mutation, and the upgraded server logs 0
<Error>lines. Case 2 follows from the v26.10.8.34 source (an inline projection is analyzed with the global context); I did not run it.Workflow [PR]
Sync PR [sync-upstream/pr/128105]
Version info
26.12.1.314-master(included in26.12and later)