Repository navigation
Make 04498_query_condition_cache_local_files non-parallel - #110763
Merged
Merged
Conversation
The test asserts `QueryConditionCacheHits` on the instance-wide query condition cache. A parallel sibling test that drops or renames any UUID-less (path-keyed) `MergeTree` table calls `Context::clearCaches`, which wipes the query condition cache, so an expected cache hit turns into a miss and the test output differs from the reference. Confirmed from a failed CI run: `CurrentMetric_QueryConditionCacheEntries` dropped from 331 to 1 exactly between the test's cache-populating query and the query expected to hit the cache, with no `SYSTEM DROP QUERY CONDITION CACHE` in the server log. All other tests asserting query condition cache hits are already tagged no-parallel for the same reason. Failures: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=110433&sha=62da4c8be297d0ee37833fc6d0af32868f4bbc9f&name_0=PR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%29 #110433 #110630 Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
|
Workflow [PR], commit [0f7d547] Summary: ✅ AI ReviewSummaryThis PR moves Final Verdict
|
1 task
This was referenced Jul 27, 2026
zeekay
pushed a commit
to hanzoai/datastore
that referenced
this pull request
Sep 11, 2026
…cal-files-flaky Make `04498_query_condition_cache_local_files` non-parallel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
The new test
04498_query_condition_cache_local_files(added in #109247) is flaky in parallel test runs: an expectedQueryConditionCacheHitsoccasionally comes back as 0 (result differs with reference), while reruns of the test alone always pass. It failed three times on 2026-07-16 across two unrelated PRs (#110433, #110630), e.g. this report.Root cause, confirmed from the server log and
metric_logof that failed run: dropping or renaming any UUID-less (path-keyed, e.g. Ordinary-database)MergeTreetable callsContext::clearCaches, which clears the instance-wide query condition cache along with the other path-keyed caches.CurrentMetric_QueryConditionCacheEntriesdropped from 331 to 1 exactly between the test's cache-populating query and the query expected to hit the cache, with noSYSTEM DROP QUERY CONDITION CACHEanywhere in the log. A parallel sibling test can therefore turn any expected cache hit into a miss.This is the same reason all other tests asserting query condition cache hits (
03229_query_condition_cache_*,04275_104781_qcc_prewhere_skip_index_attribution,02346_text_index_bug108519_qcc_skip_index) are taggedno-parallel. Tag this test the same way and update its header comment accordingly. Miss assertions are unaffected (a sibling clear cannot cause a spurious hit), so the tag is the only change needed.Related: #109247
Version info
26.7.1.1130(included in26.7and later)