Repository navigation
Conversation
Stage 1 waited for `last_successful_update_time > t0` to observe the reload done by the first periodic check. With `LIFETIME(1)` the next check can be due immediately, so the 5 s periodic updater tick may run it in the same wall-clock second as the initial load. `last_successful_update_time` is a `DateTime` (seconds), so it then stays equal to `t0`, and every later check returns the same invalidate query result and does not reload again: the loop spins until its 60 s deadline. In Fast test that is the per-test limit, so the test is killed and the whole PR matrix is dropped; elsewhere it passes in 70-90 s instead of ~20 s. Wait for `query_count = 0` instead: a reload publishes a new dictionary object whose counter starts at 0, while the initial `dictGet` made the old one 1. 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 review of the diff: 0 findings. Checked: the initial Session id: cron:clickhouse-review-slot-10:20261107-033000 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20261107-010200 |
|
cc @vdimir, could you review this and add the |
|
Workflow [PR], commit [1e206e5] Summary: ✅ AI ReviewSummaryReplaces the timestamp-based reload wait in Final VerdictStatus: ✅ Approve |
66b092b
Backport #129879 to 26.9: Fix flaky test 05457_dictionary_remote_clickhouse_invalidate_query
Backport #129879 to 26.8: Fix flaky test 05457_dictionary_remote_clickhouse_invalidate_query
Related: #129336
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix flaky test
05457_dictionary_remote_clickhouse_invalidate_query.Description
The test added in #129336 sometimes spins in its first
wait_untilfor the whole 60 s. InFast testthat is the per-test limit, so the test is killed and the PR matrix is dropped (e.g. #129845, #129809, and twice in the merge queue); in other jobs it passes in 70-90 s instead of ~20 s (master). CIDB since 2026-11-04: 11 kills and 24 more runs over 55 s, out of 1059.Root cause: stage 1 waits for
last_successful_update_time > t0to see the reload done by the first periodic check. WithLIFETIME(1)that check can run in the same wall-clock second as the initial load, andlast_successful_update_timeis aDateTime, so it stays equal tot0. Later checks see an unchanged invalidate result and never reload again, so the condition never becomes true.Change: wait for
query_count = 0instead. A reload publishes a new dictionary object whose counter starts at 0, while the initialdictGetmade the old one 1, so the condition does not depend on wall-clock seconds.Validation (debug build, 120 runs per arm with random start offsets and a
query_lograce detector): the original test stalled in all 5 runs where the reload landed in the same second (71-73 s), the fixed test passed all 3 such runs in under 18 s and all 120 runs in under 23 s.--test-runs 50with and without randomization: 100/100 OK. With the #129336 fix removed, the fixed test still fails (on 26.10.2.103: 3/3 on thedictHasline).Workflow [PR]
Sync PR [sync-upstream/pr/129879]
Version info
26.11.1.1594-master(included in26.11and later)