Skip to content

Fix Memory mutation cancellation handling - #104522

Merged
alexey-milovidov merged 20 commits into
masterfrom
fix-asan-stid-1374-2634
May 18, 2026
Merged

alexey-milovidov merged 20 commits into
masterfrom
fix-asan-stid-1374-2634

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented May 10, 2026 •

Copy link
Copy Markdown
Member

Fixes a CI AddressSanitizer exception in StorageMemory mutations when PullingPipelineExecutor stops because of query cancellation or soft timeout before producing all expected blocks. The mutation now checks query status before applying output and validates the output block count before partial-column updates.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=1b76e322cbdb89960eea5236f4eda5ad3f9e164d&name_0=MasterCI&name_1=Stress%20test%20%28experimental%2C%20serverfuzz%2C%20arm_asan_ubsan%29&name_1=Stress%20test%20%28experimental%2C%20serverfuzz%2C%20arm_asan_ubsan%29

Examples query: https://play.clickhouse.com/play?user=play&run=1#U0VMRUNUIGNoZWNrX3N0YXJ0X3RpbWUsIGNoZWNrX25hbWUsIHRlc3RfbmFtZSwgcmVwb3J0X3VybApGUk9NIGNoZWNrcwpXSEVSRSAxCiAgICBBTkQgY2hlY2tfc3RhcnRfdGltZSA+PSBub3coKSAtIElOVEVSVkFMIDI0IEhPVVIKICAgIEFORCAoaGVhZF9yZWYgPSAnbWFzdGVyJyBBTkQgc3RhcnRzV2l0aChoZWFkX3JlcG8sICdDbGlja0hvdXNlLycpKQogICAgQU5EIHRlc3Rfc3RhdHVzICE9ICdTS0lQUEVEJwogICAgQU5EICh0ZXN0X3N0YXR1cyBMSUtFICdGJScgT1IgdGVzdF9zdGF0dXMgTElLRSAnRSUnKQogICAgQU5EIGNoZWNrX3N0YXR1cyAhPSAnc3VjY2VzcycKICAgIEFORCBjaGVja19uYW1lIE5PVCBMSUtFICdsaWJGdXp6ZXIlJwogICAgQU5EIGNoZWNrX25hbWUgIT0gJ0NsaWNrSG91c2UgS2VlcGVyIEplcHNlbicKICAgIEFORCBjaGVja19uYW1lIE5PVCBMSUtFICdJbnRlZ3JhdGlvbiB0ZXN0cyAoYW1kX2xsdm1fY292ZXJhZ2UlJwpPUkRFUiBCWSBjaGVja19zdGFydF90aW1lIERFU0M=

Related open issues: none found for STID: 1374-2634, AddressSanitizer StorageMemory mutation, or Memory mutation timeout.

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):

Not required.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.5.1.736

`PullingPipelineExecutor` can return `false` when a query is cancelled or
stopped by a soft timeout. `StorageMemory` treated that result as normal EOF
and then assumed the mutation pipeline produced one block for every stored
block, which could walk past the end of the output vector while updating
columns.

Check the query status around mutation pulls and fail before applying partial
data. Also validate the block count before partial-column updates.

CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=1b76e322cbdb89960eea5236f4eda5ad3f9e164d&name_0=MasterCI&name_1=Stress%20test%20%28experimental%2C%20serverfuzz%2C%20arm_asan_ubsan%29&name_1=Stress%20test%20%28experimental%2C%20serverfuzz%2C%20arm_asan_ubsan%29
Examples: https://play.clickhouse.com/play?user=play&run=1#U0VMRUNUIGNoZWNrX3N0YXJ0X3RpbWUsIGNoZWNrX25hbWUsIHRlc3RfbmFtZSwgcmVwb3J0X3VybApGUk9NIGNoZWNrcwpXSEVSRSAxCiAgICBBTkQgY2hlY2tfc3RhcnRfdGltZSA+PSBub3coKSAtIElOVEVSVkFMIDI0IEhPVVIKICAgIEFORCAoaGVhZF9yZWYgPSAnbWFzdGVyJyBBTkQgc3RhcnRzV2l0aChoZWFkX3JlcG8sICdDbGlja0hvdXNlLycpKQogICAgQU5EIHRlc3Rfc3RhdHVzICE9ICdTS0lQUEVEJwogICAgQU5EICh0ZXN0X3N0YXR1cyBMSUtFICdGJScgT1IgdGVzdF9zdGF0dXMgTElLRSAnRSUnKQogICAgQU5EIGNoZWNrX3N0YXR1cyAhPSAnc3VjY2VzcycKICAgIEFORCBjaGVja19uYW1lIE5PVCBMSUtFICdsaWJGdXp6ZXIlJwogICAgQU5EIGNoZWNrX25hbWUgIT0gJ0NsaWNrSG91c2UgS2VlcGVyIEplcHNlbicKICAgIEFORCBjaGVja19uYW1lIE5PVCBMSUtFICdJbnRlZ3JhdGlvbiB0ZXN0cyAoYW1kX2xsdm1fY292ZXJhZ2UlJwpPUkRFUiBCWSBjaGVja19zdGFydF90aW1lIERFU0M=
@clickhouse-gh

clickhouse-gh Bot commented May 10, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [3ce5d1f]

Summary: ✅


AI Review

Summary

This PR hardens Memory mutation cancellation handling by checking executor end-state, rejecting incomplete partial-column output, and adding a timeout/break regression test. Most earlier review concerns are addressed in the current diff, but one cancellation-reason race is still live and can misreport a user cancel as a timeout.

Findings

⚠️ Majors

  • [src/Processors/Executors/PullingPipelineExecutor.cpp:151] getExecutionStatus normalizes NotStarted and CancelledByUser from QueryStatus::getCancelReason, but not CancelledByTimeout. In a real race, user cancellation can set is_killed first, checkTimeLimitSoft can then transition executor status to CancelledByTimeout, and the later user-cancel path cannot overwrite it. This branch then returns CancelledByTimeout, so StorageMemory::mutate throws TIMEOUT_EXCEEDED for a user kill.
    Suggested fix: when process_list_element->isKilled() is true, also normalize status == CancelledByTimeout from getCancelReason (same way as CancelledByUser), so timeout vs user cancellation is derived from cancel_reason.
Tests
  • ⚠️ Add a focused regression test that issues KILL QUERY during ALTER TABLE ... UPDATE on Memory and asserts the final exception is QUERY_WAS_CANCELLED (not TIMEOUT_EXCEEDED) under cancellation races.
Final Verdict
  • Status: ⚠️ Request changes
  • Minimum required actions:
  1. Fix cancellation-status normalization in PullingPipelineExecutor::getExecutionStatus for CancelledByTimeout when isKilled() is true.
  2. Add regression coverage for user-cancel vs timeout exception classification in Memory mutations.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label May 10, 2026
alexey-milovidov and others added 3 commits May 10, 2026 22:47
`04216_memory_mutation_timeout_break` clashed with `04216_materialized_view_reused_target_name_dependency`
that landed on master while this PR was open. Bump our test to `04217`.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
In `pullMutationBlock` the return value of `checkTimeLimit` was ignored.
With `timeout_overflow_mode = 'break'`, `checkTimeLimit` returns `false`
on a soft timeout without throwing, so the mutation could keep pulling
extra blocks past the time limit and only fail later. Check the return
value before `pull` and throw `TIMEOUT_EXCEEDED` immediately.

CI sync report: ClickHouse/clickhouse-private#57620

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Comment thread src/Storages/StorageMemory.cpp Resolved
alexey-milovidov and others added 5 commits May 12, 2026 00:10
Move the `checkTimeLimit` call to run only after `executor.pull` returns
`false`. The previous pre-check could throw `TIMEOUT_EXCEEDED` on the
normal end-of-stream path with `timeout_overflow_mode = 'break'` when
the timeout flips between the last produced block and the loop's
final `pull` call, even though the mutation actually completed
successfully.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
`04227_memory_mutation_timeout_break` clashed with
`04227_case_with_expression_array_result_78352` and
`04227_prewhere_parameterized_view_join_102074` that landed on
master while this PR was open. Bump our test to `04229`.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ignal

The previous code threw `TIMEOUT_EXCEEDED` based on `QueryStatus::checkTimeLimit`
after `executor.pull` returned `false`. That is a false positive when the soft
timeout flips between the last produced block and the final `pull` that
observes normal end-of-stream: the mutation actually completed, but we threw
anyway.

Distinguish the two cases by consulting `PipelineExecutor::getExecutionStatus`,
which `cancel` switches to `CancelledByTimeout` / `CancelledByUser` on
cancellation but leaves at `Executing` on a clean end-of-stream. Expose the
status through `PullingPipelineExecutor::getExecutionStatus` (matching the
pattern used by `PushingPipelineExecutor::throwOnExecutionStatus`).

The wrapper also falls back to `QueryStatus::isKilled` / `checkTimeLimitSoft`
when the executor's status is `NotStarted` — `cancel(CancelledByTimeout)` only
transitions `Executing` → `CancelledByTimeout`, so if the timeout fires before
the very first `executeStep`, the executor's status would otherwise lie about
having been cancelled.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ngthen test

For partial-column `Memory` mutations the output block count must equal the input,
so a count mismatch is precise evidence that the pipeline did not produce all expected
blocks. Throwing `TIMEOUT_EXCEEDED` / `QUERY_WAS_CANCELLED` only when this evidence
is present avoids a false cancellation exception when the soft timeout flips between
the last successful `pull` and the next `pull`'s pre-step `checkTimeLimitSoft`, after
all blocks were already produced. The fail-close behaviour is preserved for the
all-columns path, where output completeness cannot be precisely validated.

Also strengthens `04229_memory_mutation_timeout_break.sql` to use a value-changing
update (`a = a + 1 + toUInt64(sleepEachRow(0.01))`) — `sleepEachRow` returns `0`,
so the previous expression `a + 0` was a no-op and could not detect a regression
where a partial mutation result was swapped into the table.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Comment thread src/Storages/StorageMemory.cpp Resolved
…ellation

`PullingPipelineExecutor::pull(Block)` can return `true` with an empty
block on timeout. With only a block-count check, an empty trailing block
could slip past: `updateBlockData` no-ops on a block that has no
columns, silently keeping the un-mutated old block while swallowing the
cancellation signal.

Strengthen the partial-column completeness check to also require
per-block row counts to match `old_data`. Any shape mismatch rethrows
through `throw_on_cancellation` so a real cancellation always surfaces.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…classification

`cancelQuery` sets `is_killed` for both user-initiated kills and `CancellationChecker`
timeouts, and the `NotStarted` fallback in `PullingPipelineExecutor::getExecutionStatus`
mapped `isKilled() == true` unconditionally to `CancelledByUser`. As a result, a
`StorageMemory` mutation cancelled by `CancellationChecker` for a timeout could be
reported as `QUERY_WAS_CANCELLED` instead of `TIMEOUT_EXCEEDED`.

Add a public `QueryStatus::getCancelReason` accessor, lock-protected to match the
existing `cancel_mutex` discipline, and consult it in the fallback so timeout
cancellations are classified as `CancelledByTimeout`.
@alexey-milovidov

Copy link
Copy Markdown
Member Author

@groeneai, please investigate two CI failures that look unrelated to this PR (which only touches StorageMemory mutation handling and PullingPipelineExecutor):

  1. Stateless tests (amd_msan, WasmEdge, parallel, 1/2) — report. All five failures look like the same transient: Timeout exceeded (180 s) while flushing system log 'DB::SystemLogQueue<DB::QueryLogElement>' in SYSTEM FLUSH LOGS query_log (02932_kill_query_sleep, 02423_insert_stats_behaviour, 02372_analyzer_join, 03208_array_of_json_read_subcolumns_1). 03203_system_query_metric_log failed once and the CI's randomized-settings rerun reported "All reruns passed. The failure is not reproducible."

  2. Stress test (amd_tsan) — report. Cannot start clickhouse-server / Check failed from a segfault during startup table loading: DB::StorageTimeSeries::StorageTimeSeries (src/Storages/StorageTimeSeries.cpp:171), reading null at auto metadata = table->getInMemoryMetadataPtr(getContext(), false); (likely a missing nullptr check after tryGetTable). Stack trace in fatal.log.

If a fix is already in progress, please link it here.

alexey-milovidov and others added 2 commits May 14, 2026 06:25
…meout

`ExecutorHolder::cancel` forwards to the no-arg `PipelineExecutor::cancel`,
which always reports `CancelledByUser` regardless of the `CancelReason`
recorded by `cancelQuery`. When `CancellationChecker` triggers
`cancelQuery(CancelReason::TIMEOUT)` after the executor is already attached
(the default `timeout_overflow_mode = 'throw'` path), the executor's status
becomes `CancelledByUser` and `StorageMemory::mutate` would have thrown
`QUERY_WAS_CANCELLED` instead of `TIMEOUT_EXCEEDED`.

Extend the remap in `PullingPipelineExecutor::getExecutionStatus` to also
cover the `CancelledByUser` case, reading the recorded `CancelReason` from
`QueryStatus` to recover the actual reason. Reviewer feedback:
#104522

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member Author

@groeneai, follow-up on the latest CI run (commit 87326726). Two failures remain, both look unrelated to this PR's StorageMemory mutation / pipeline executor changes:

  1. Stateless tests (amd_msan, WasmEdge, parallel, 1/2) — report. 02174_cte_scalar_cache_mv timed out at the SQL client level, and the randomized-settings rerun reported All reruns passed. The failure is not reproducible (likely a transient issue). CIDB shows the same check_name failing across many unrelated PRs in the last 14 days (100407, 100752, 104484, 100391, etc.) with zero master-only failures — looks like a transient MSan-runner flake, not a per-test bug.

  2. libFuzzer tests — report. select_parser_fuzzer reported libFuzzer timeout after 21 seconds. CIDB shows a clear spike on 2026-05-13 (24 failures / 24 distinct PRs) and 2026-05-14 (7 failures / 7 PRs), affecting nearly every PR running the check including ones that don't touch parser code at all. Tracked by open issue libFuzzer tests are flaky #93438 "libFuzzer tests are flaky". This PR doesn't touch the parser or fuzzer infrastructure.

If a fix is already in progress for either, please link it here. Otherwise please investigate.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

@groeneai, follow-up on the latest CI run (commit 6e3b3442). Three failure buckets remain, all confirmed unrelated to this PR's StorageMemory mutation / PullingPipelineExecutor changes:

  1. Integration tests (amd_asan_ubsan, db disk, old analyzer, 2/6) — report. test_jbod_ha/test.py::test_jbod_ha_fetch_partition failed with umount: /test_jbod_ha_jbod1: target is busy.. CIDB shows 34 failures across 10 unrelated PRs in the last 90 days — looks like a known infrastructure flake on JBOD teardown. No existing open issue found.

  2. Unit tests (tsan, function_prop_fuzzer) — report. FunctionsStress.stress reports broken_determinism for if(materialize(...)) and isNotDistinctFrom(...); AllTests is the rollup of the same failure. Functions unrelated to Memory mutations. Tracked by open issue FunctionsStress.stress #104877.

  3. BuzzHouse (amd_debug) — report. Logical error: Distributed task iterator is not initialized (STID: 4662-3e65), stack trace pointing at DB::RemoteQueryExecutor::processReadTaskRequest (src/QueryPipeline/RemoteQueryExecutor.cpp:787). Tracked by open issue Logical error: Distributed task iterator is not initialized (STID: 4662-4342) #91736.

If a fix is already in progress for any of these, please link it here. Otherwise please investigate.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

@groeneai, investigate the failure: Unit tests (tsan, function_prop_fuzzer)/FunctionsStress.stress (CI report). It is unrelated to this PR — tracked in #104877 (broken_determinism in FunctionsStress.stress for if / isNotDistinctFrom with FixedString). Please provide a fix in a separate PR or link the existing fix here.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

@groeneai, investigate the failure: BuzzHouse (amd_debug)/Logical error: Distributed task iterator is not initialized (STID: 4662-3e65) (CI report). It is unrelated to this PR — tracked in #91736, with a fix in progress in #100146. Please link or coordinate the fix in a separate PR.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

@groeneai, investigate the failure: Integration tests (amd_asan_ubsan, db disk, old analyzer, 2/6)/test_jbod_ha/test.py::test_jbod_ha_fetch_partition (CI report). It is unrelated to this PR — umount: /test_jbod_ha_jbod1: target is busy is a Docker test-fixture flake in test_jbod_ha_fetch_partition. Please provide a fix (or open a tracking issue) in a separate PR.

@tuanpach tuanpach self-assigned this May 15, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member Author

@groeneai, follow-up on the latest CI run (commit 9c4b4832). Three failure buckets remain, all confirmed unrelated to this PR's StorageMemory mutation / PullingPipelineExecutor changes:

  1. Stateless tests (amd_msan, WasmEdge, parallel, 1/2) — report. 04039_merge_tree_snapshot_teardown_race hit a 600 s test timeout; the randomized-settings rerun reported All reruns passed. The failure is not reproducible. CIDB shows 9 distinct PRs failing today and 30 yesterday — known flake tracked by Flaky test: 04039_merge_tree_snapshot_teardown_race #104866. Test exercises projection teardown via _part/_part_offset row filters, no Memory mutation involvement.

  2. Stateless tests (amd_msan, WasmEdge, parallel, 2/2) — report. 01548_query_log_query_execution_ms timed out in SYSTEM FLUSH LOGS query_log, query_thread_log; randomized rerun passed. CIDB shows 3 distinct PRs failing today and 25 yesterday — environmental MSan-runner flake in system log flush. The old tracking issue Flaky test: 01548_query_log_query_execution_ms #92759 is closed; consider re-opening or filing a fresh one.

  3. libFuzzer tests — report. create_parser_fuzzer reported out-of-memory (used: 6273Mb; limit: 6144Mb) — 129 MB over the cap. CIDB shows 7 distinct PRs failing today and 11 yesterday. Tracked by open issue libFuzzer tests are flaky #93438 "libFuzzer tests are flaky". This PR doesn't touch the parser or fuzzer infrastructure.

If a fix is already in progress for any of these, please link it here. Otherwise please investigate.

@groeneai

Copy link
Copy Markdown
Collaborator

@alexey-milovidov — apologies for the silence on the last 7 directives; they fell through a gap in our inbox routing that's now closed. Catching up with the mapping you asked for:

  1. StorageTimeSeries.cpp:171 segfault (the original 2026-05-14 00:14 comment) — your own fix PR Fix UBSan null deref in StorageTimeSeries constructor #104905 ("Fix UBSan null deref in StorageTimeSeries constructor") is OPEN/MERGEABLE, awaiting review. Regressing commit 16e69dfc0f5. We have it under pr-104905-monitoring; no action from us.

  2. WasmEdge MSan SystemLog flush timeouts (02932_kill_query_sleep, 02423_insert_stats_behaviour, 02372_analyzer_join, 03208_array_of_json_read_subcolumns_1, 03203_system_query_metric_log, 02174_cte_scalar_cache_mv, 04039_merge_tree_snapshot_teardown_race, 01548_query_log_query_execution_ms) — umbrella Flaky test: 04039_merge_tree_snapshot_teardown_race #104866 is CLOSED as of 2026-05-15 08:57 UTC; @Algunenano's x86v3 + __msan_chain_origin + vzeroupper patch landed and we're seeing 75–87% reduction in the family on CIDB. Stale PR branches will still hit it until rebase.

  3. select_parser_fuzzer timeout (2026-05-14 06:28) — fixed on master by Cap select_parser_fuzzer max_parser_backtracks at 10000 #104922 (capped max_parser_backtracks at 10000 in tests/fuzz/select_parser_fuzzer.options, MERGED 2026-05-14 11:21 UTC). 48h+ clean on master. Note: a separate ASan heap-buffer-overflow in UTF8Helpers.cpp:143 is a different bug being addressed by Fix heap-buffer-overflow in syntax error formatting (parseQuery) #105086.

  4. create_parser_fuzzer OOM (6273 MB / 6144 MB cap, the 2026-05-15 07:54 comment) — tracked under libFuzzer tests are flaky #93438; trigger shape is deeply-nested Map(Map(...)). Investigation in progress, will be a follow-up PR.

  5. FunctionsStress.stress broken_determinism (2026-05-14 16:22, re-pinged) — umbrella FunctionsStress.stress #104877 OPEN. @Algunenano's PR Fix more non-deterministic function results found by the functions stress test #104858 ("Fix more non-deterministic function results found by the functions stress test") MERGED, covering stringVectorConstantFixedString + castForIf (isDistinctFrom + if(materialize) variants). Our companion PR Fix transform default-branch conversion bug (FixedString / Enum) #104804 (transform default-branch FixedString/Enum) is OPEN/CONFLICTING — rebasing.

  6. BuzzHouse STID 4662-3e65 "Distributed task iterator is not initialized" (2026-05-14 16:22) — tracked under Logical error: Distributed task iterator is not initialized (STID: 4662-4342) #91736 (RemoteQueryExecutor::processReadTaskRequest at RemoteQueryExecutor.cpp:787). Open, external fix linked in our tracker.

  7. test_jbod_ha_fetch_partition umount: target is busy (2026-05-14 11:34, re-pinged 16:22) — 34 hits across 10 unrelated PRs in 90 days; teardown-race infra flake on JBOD. No existing GitHub issue; we're tracking it internally as a P2. Want me to open a flaky test issue for it?

None of the 8 failure classes above are caused by this PR's StorageMemory mutation / PullingPipelineExecutor changes.

Cron rules tightened so this doesn't happen again — apologies for the multi-day delay.

/// `PipelineExecutor::cancel(CancelledByTimeout)` only transitions `Executing` → `CancelledByTimeout`,
/// so a timeout that fires before the first `executeStep` leaves the executor at `NotStarted`.
/// Consult the `QueryStatus` to recover the actual reason in both cases.
if (pipeline.process_list_element->isKilled()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getExecutionStatus still misclassifies a user cancel as timeout in a real race:

  1. cancelQuery sets is_killed = true with reason CANCELLED_BY_USER.
  2. Before ExecutorHolder::cancel runs, the pull thread enters PipelineExecutor::checkTimeLimitSoft.
  3. QueryStatus::checkTimeLimitSoft returns false only because is_killed is set, and PipelineExecutor::cancel(CancelledByTimeout) transitions Executing -> CancelledByTimeout.
  4. Later ExecutorHolder::cancel cannot switch the state to CancelledByUser anymore.
  5. This branch keeps CancelledByTimeout, so StorageMemory::mutate throws TIMEOUT_EXCEEDED for a user kill.

Could we also normalize status == CancelledByTimeout from QueryStatus::getCancelReason (same way as CancelledByUser), so timeout vs user cancellation is always derived from cancel_reason when isKilled is true?

@alexey-milovidov

Copy link
Copy Markdown
Member Author

This was fixed by #105146. Let's update the branch.

@clickhouse-gh

clickhouse-gh Bot commented May 17, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.20% 84.10% -0.10%
Functions 91.40% 91.40% +0.00%
Branches 76.60% 76.60% +0.00%

Changed lines: 75.00% (39/52) · Uncovered code

Full report · Diff report

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue May 17, 2026
Merged via the queue into master with commit b8902e8 May 18, 2026
167 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix-asan-stid-1374-2634 branch May 18, 2026 00:06
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label May 18, 2026
scanhex12 pushed a commit to scanhex12/ClickHouse that referenced this pull request Jul 29, 2026
The disk health check thread (controlled by `local_disk_check_period_ms`)
periodically opens directories under storage paths. When the test mounts
`proc` over a JBOD storage directory and then immediately calls `umount`,
the thread can be holding an open file descriptor on the mount point,
causing `umount` to fail with `target is busy`.

Wrap both `umount` call sites in a small helper that retries on this
specific error string and lets every other exception (and the final
attempt) propagate unchanged.

Observed on PR ClickHouse#104522: ClickHouse#104522
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.

4 participants