Repository navigation
Fix flaky test 05218_text_index_substreams_opened_lazily with the columns cache - #127781
devcrafter merged 2 commits into
Conversation
Since ClickHouse#127287 the columns cache serves compact parts, so with a randomized `use_columns_cache = 1` the warm-up query caches the columns and the measured queries open no data files. That turns the FileOpen oracle blind: the in-range control fails (FileOpen 30, not > PARTS), and the selective and postings-cached arms pass vacuously (0 files opened). Pin `use_columns_cache = 0` in the settings every measured query and warm-up uses, next to the query cache pins. With the setting at 0 the cache is neither read nor written, so the `enable_reads_from_columns_cache` and `enable_writes_to_columns_cache` draws need no pin. Failing job: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=127715&sha=9500cdadc54b2d1ef5c3825d11b4d749668a5fd2&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20sequential%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 my own cold review of the diff (1 nit).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-9:20261025-144200 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-6:20261025-142400 |
|
cc @Ergus, could you review this and add the |
|
Workflow [PR], commit [4649977] Summary: ✅ AI ReviewSummaryThis PR pins Final VerdictStatus: ✅ Approve |
|
@groeneai please add comment (concise, short one) in the test why |
…ed_lazily Requested by a reviewer on ClickHouse#127781. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Added in 4649977: a column served from the columns cache opens no data file, which blinds the |
Merge upstream `master` at 9a348d8. Include the fix that disables `use_columns_cache` in the text-index file-opening regression test. Preserve the existing `DDL` parser changes and their regression coverage. Related: ClickHouse#127781 Related: ClickHouse#117678
Retain upstream statistics-loader headers alongside the cancellation context include. Include the columns-cache isolation fix for the text-index file-open test. Related: ClickHouse#127781
Related: #127287
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix the flaky test
05218_text_index_substreams_opened_lazily, which failed with a randomizeduse_columns_cache = 1since the columns cache also serves compact parts.Description
05218_text_index_substreams_opened_lazilyfails within_range_above_threshold1 -> 0 since #127287 merged: 10 times within 2.5 hours, in thearm_binary,amd_debugandamd_msansequential stateless jobs, on 9 unrelated PRs and on master (master report, PR report). The runner's own diagnosis names--use_columns_cache 1as the culprit.The test's table uses compact parts. Since #127287 the columns cache serves compact parts too, so with a randomized
use_columns_cache = 1the unmeasured warm-up query caches the columns and the measured queries open no data files. The in-range control then opens only the 30 postings files (FileOpen30,ColumnsCacheHits30), not more thanPARTS, and the selective and postings-cached arms pass without exercising lazy substream opening at all (0 files opened).The test now pins
use_columns_cache = 0next to its existing query cache and query condition cache pins, in the settings that every measured query and warm-up uses. With the setting at 0 the cache is neither read nor written.Validation on a debug build of master
ae5c82b2ad2: with--client-option use_columns_cache=1 enable_reads_from_columns_cache=1 enable_writes_to_columns_cache=1and no other randomization, the unmodified test fails 5/5 with the CI diff. With the pin it passes 5/5 (0 cache hits, in-rangeFileOpen60), and removing the pin brings the failure back 5/5. 50/50 randomized runs pass, 7 of which drew the failing combination. A pre-#127287 master build passes the forced runs 5/5 with no cache hits.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/127781]
Version info
26.11.1.826-master(included in26.11and later)