Repository navigation
Split 03814_system_unload_dictionary into parallel-safe and no-parallel tests - #111773
alexey-milovidov merged 4 commits into
Conversation
…el tests SYSTEM UNLOAD DICTIONARIES (plural) is server-global: it unloads dictionaries owned by other concurrently-running tests, which is why 03814_system_unload_dictionary required the no-parallel tag. The singular SYSTEM UNLOAD DICTIONARY name is database-scoped and parallel-safe. Move the two server-global SYSTEM UNLOAD DICTIONARIES cases into a new 03814_system_unload_dictionaries test that keeps no-parallel, and drop no-parallel from 03814_system_unload_dictionary, which now exercises only the database-scoped singular commands and runs in parallel. All existing coverage is preserved: the parallel test keeps its LOADED/NOT_LOADED status transitions because, once the global command is split out, no parallel-batch test issues a global unload. Related: ClickHouse#109639 Co-Authored-By: Claude Opus 4.8 <[email protected]>
Internal second-model review — adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 3 findings; bounded: 1 full pass + 1 fix round + 1 delta recheck; delta recheck: 0 new findings).
Severity: ❌ blocker / Session id: cron:clickhouse-author-slot-1:20260724-102200 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-author-slot-1:20260724-102200 |
|
@Manerone this is the split you asked for: |
|
Workflow [PR], commit [ee7d5e7] Summary: ✅ AI ReviewSummaryThis PR splits Final Verdict✅ No new findings. |
Manerone asked to turn the section-header comments into SELECT queries so the reference file reads cleanly; apply that to both split tests. The clickhouse-gh bot noted the split dropped the mixed SYSTEM UNLOAD DICTIONARIES -> SYSTEM UNLOAD DICTIONARY assertion (verifying a dictionary already unloaded server-wide is still idempotently unloadable via the singular path). Restore that assertion at the end of the second global-unload block in the no-parallel test. Related: ClickHouse#109639 Co-Authored-By: Claude Opus 4.8 <[email protected]>
Internal second-model review — adjudication log (click to expand)Pre-publication review of commit
Change: turned section-header comments into |
CI finish ledger — eaf8d3bEvery failure below has an owner. This PR only splits
Session id: cron:our-pr-ci-monitor:20260724-180000 |
|
@groeneai merge master into the PR |
|
@Manerone done - merged current The merge is content-preserving: the four test files are byte-identical to the approved state ( |
|
Discharging the open owner line from my CI finish ledger above ( Fixing PR: #110632 (@ alexey-milovidov, open) - it relaxes exactly the assertion that fails here. Correcting my own ledger's reason column while I am at it: I wrote "chronic trunk flaky", which understates it. The failure is deterministic under memory pressure, not random. The failing statement is SELECT '2^31-1', maxMerge(x) FROM (SELECT CAST(unhex('ffffff7f') || randomString(100500), 'AggregateFunction(max, String)') AS x); -- { serverError CANNOT_READ_ALL_DATA }
#110632 accepts either error code, since the property under test is that a corrupted state is rejected. The preallocation itself stays on master by the maintainer's explicit decision when he closed the read-path variant #110630 ("not worth complicating the hot read path"). Still unmerged as of now, so recurrences on this PR are expected until it lands. Unrelated to this PR's diff, which only splits |
CI finish ledger — ee7d5e7CI is fully finished on the post-master-merge head and it is green: 174 check-runs, none So there is nothing to own on this head: the Session id: cron:our-pr-ci-monitor:20260727-143000 |
Related: #109639
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
SYSTEM UNLOAD DICTIONARIES(plural) is server-global: it unloads dictionaries of other concurrently-running tests, so03814_system_unload_dictionaryneededno-parallel. The singularSYSTEM UNLOAD DICTIONARY nameis database-scoped and parallel-safe.Split the test so most of it can run in parallel:
03814_system_unload_dictionarykeeps the database-scoped singular commands (load / unload / lazy reload / explicit reload / idempotent unload / error case) and dropsno-parallel.03814_system_unload_dictionaries(new) holds the two server-globalSYSTEM UNLOAD DICTIONARIEScases and keepsno-parallel.Verified on a debug build: the parallel part passes 50/50 with randomization and 0/480 under 12-way self-parallel stress; without the split, dropping
no-parallelflakes ~10% (a sibling copy's global unload clears this copy's dictionary between the lazy load and the status check).