Repository navigation
Increase the timeout in test 04031_filelog_drop_mv_no_exception so it won't be flaky with azure under sanitizers - #102386
Merged
Merged
Conversation
… won't be flaky with azure under sanitizers
Contributor
|
Workflow [PR], commit [c09ca99] Summary: ✅ AI ReviewSummaryThis PR adjusts a single flaky stateless test ( ClickHouse Rules
Final Verdict
|
1 task
SetGeek
pushed a commit
to SetGeek/ClickHouse
that referenced
this pull request
Apr 29, 2026
The 150s warm-up loop in the test polls the destination MergeTree table waiting for the `FileLog` background thread to ingest the prepared CSV file. The default `poll_directory_watch_events_backoff_max` is 32s, and under sanitizer builds with `BackgroundSchedulePool` contention the polling cycle can drift to that upper bound. On slow runners (`ASan`+azure, `MSan`+WasmEdge) the file is occasionally not picked up within 150s and the test reports "Warm-up failed: only 0 rows consumed after 300 attempts". Looking at CIDB for the 30-day window after PR ClickHouse#102386 merged the timeout bump (2026-04-17), 12 failures still remain — all 10/12 with the same warm-up timeout signature, dominated by `Stateless tests (arm_asan_ubsan, azure, sequential)` (10 hits) and `amd_msan` (2 hits). Cap `poll_directory_watch_events_backoff_max` at 1s on the test's `FileLog` table so the worst-case polling cycle is bounded by 1s plus scheduling jitter, well below the 150s warm-up loop. Same pattern as PR ClickHouse#103602 for sister test `02968_file_log_multiple_read`. The fix preserves the test's original purpose (regression test for `DEPENDENCIES_NOT_FOUND` race when the materialized view is dropped during streaming) — only the file-detection latency is bounded, the DROP-during-streaming race window is unchanged. Verified locally: - 50/50 passes with `--no-random-settings --no-random-merge-tree-settings`. - Deterministic repro of the failure mode without the fix: with `poll_directory_watch_events_backoff_init=200000`, `poll_directory_watch_events_backoff_max=200000` (simulating a 200s polling cycle), the warm-up fails: "REPRODUCED: only 0 rows after 150s warm-up". CI report (sample failure): https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=102302&sha=a4cc3a4d5acd3ee9dae8860b032a8fe7b91b2dce&name_0=PR&name_1=Stateless%20tests%20%28amd_msan%2C%20WasmEdge%2C%20sequential%2C%202%2F2%29 Closes ClickHouse#102388 Session: cron:clickhouse-ci-task-worker:20260428-114500
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):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Closes #102388
Documentation entry for user-facing changes
Version info
26.4.1.1026