Repository navigation
Conversation
The test asserts hits in the server-wide query condition cache. In the parallel phase another test can clear that cache between the read that writes an entry and the probe that reads it: a MergeTree table without a UUID (Ordinary database) calls Context::clearCaches() on drop and rename, which also clears the query condition cache. In a failing `Stateless tests (arm_asan_ubsan, targeted)` run, 05213_timeseries_metric_families_target dropped the inner tables of a TimeSeries table in an Ordinary database right before both probes of t_05339_s3_written. One such DROP clears the cache three times in about 220 ms, so the second attempt did not help. Run the test in the sequential group, as the other tests checking hits in this cache do (04498, 05316), and drop the retry. 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 (1 nit).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261102-005900 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-7:20261102-001400 |
|
cc @rschu1ze, could you review this and add the |
|
Workflow [PR], commit [47b5409] Summary: ✅ AI ReviewSummaryThis PR runs Missing context / blind spots
Final VerdictStatus: ✅ Approve. |
|
@arsenmuk You're good with that one? |
arsenmuk
left a comment
There was a problem hiding this comment.
It's a solid flaky fix, and a cleanup of parallel-supporting code
0587f5b
Related: #124827
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
05339_parquet_top_k_string_statistics(added in #124827) sometimes printst_05339_s3: the read populates the cache without use_query_condition_cache_for_top_k: 0instead of1(arm_asan_ubsan, targeted; no failures on master).The test checks hits in the server-wide query condition cache while running in parallel with other tests. In the failing run the server log shows the read storing its entry, then
05213_timeseries_metric_families_targetdropping the inner tables of aTimeSeriestable in anOrdinarydatabase a few milliseconds before each of the two probes. A MergeTree table without a UUID callsContext::clearCaches()on drop and rename, which also clears the query condition cache. OneDROPof aTimeSeriestable clears it three times in about 220 ms, so the second attempt that the test already had did not help.The test is now tagged
no-parallel, like the other tests that check hits in this cache (04498_query_condition_cache_local_files,05316_top_k_primary_key_skip_query_condition_cache), and the retry is removed. Test-only change, reference unchanged.Validation on a master debug build:
SYSTEM CLEAR QUERY CONDITION CACHEbefore the probe gives the CI diff 5/5; a concurrent create and drop of a MergeTree table in anOrdinarydatabase fails 10/10 (Atomic: 0/10). Next to 160 runs of05213with-j 16, the test failed 1/40 before the change and 0/40 after it, now in the sequential group. 50/50 randomized runs pass.Workflow [PR]
Sync PR [sync-upstream/pr/128565]
Version info
26.11.1.1764-master(included in26.11and later)