Skip to content

Increase the timeout in test 04031_filelog_drop_mv_no_exception so it won't be flaky with azure under sanitizers - #102386

Merged
Avogar merged 3 commits into
masterfrom
flaky-test-04031
Apr 17, 2026
Merged

Avogar merged 3 commits into
masterfrom
flaky-test-04031

Conversation

@Avogar

@Avogar Avogar commented Apr 10, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Closes #102388

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.4.1.1026

@clickhouse-gh

clickhouse-gh Bot commented Apr 10, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [c09ca99]

Summary: ✅


AI Review

Summary

This PR adjusts a single flaky stateless test (04031_filelog_drop_mv_no_exception.sh) by increasing the warm-up wait window for --azure-blob-storage + ASan scenarios (from ~6s to up to 150s) and aligning the failure message with the new attempt count. I found no correctness, safety, or maintainability issues in the current PR head, and no additional inline comments are needed.

ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ✅
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ✅
SettingsChangesHistory.cpp ➖
PR metadata quality ✅
Safe rollout ✅
Compilation time ✅
No large/binary files ✅
Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Apr 10, 2026
@Avogar
Avogar added this pull request to the merge queue Apr 17, 2026
Merged via the queue into master with commit 5ca6981 Apr 17, 2026
161 checks passed
@Avogar
Avogar deleted the flaky-test-04031 branch April 17, 2026 13:20
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Apr 17, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky test: 04031_filelog_drop_mv_no_exception

2 participants