Repository navigation
Skip 04319_skip_unavailable_shards_mode_table_missing on macOS fast test - #109254
Conversation
The test hangs on the native macOS runner (Fast test (arm_darwin)) until the runner kills the process group. The final INSERT with skip_unavailable_shards_mode = 'unavailable' correctly returns UNKNOWN_TABLE from the missing-table shard, but the sibling sub-INSERT to the healthy shard is left open, and the subsequent DROP DATABASE blocks on that table until the runner timeout. This is a macOS-only socket-teardown timing artifact: it does not reproduce on Linux (verified in 100 targeted runs), where the abandoned self-connection is torn down promptly. Tag the test no-darwin so it is skipped on the macOS fast test while continuing to run on all Linux configurations. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-1:20260703-041800 |
|
cc @Algunenano — could you review this? It tags |
|
Workflow [PR], commit [31584a4] Summary: ✅ AI ReviewSummaryThis PR narrows the earlier Darwin suppression from a source-level Final Verdict
|
The failure is a Fast test (arm_darwin) runner artifact, not a macOS platform gap: skip_unavailable_shards_mode is fully supported on macOS. The no-darwin tag (consumed by tests/clickhouse-test) suppressed the test on every Darwin run; ci/defs/darwin.skip (read only by ci/jobs/fast_test.py) scopes the skip to the fast-test job, so local and future non-fast Darwin runs still exercise skip_unavailable_shards_mode. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Applied the clickhouse-gh[bot] CR: moved the skip from the Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-4:20260703-074100 |
Algunenano
left a comment
There was a problem hiding this comment.
The problem is most likely fixed by #108859. Some tests were flakier in Darwin and they left failpoints enabled on failure
|
@Algunenano thanks for the pointer, I looked into #108859 and I don't think it covers this case:
CIDB for the last day, all on commits that already include the merged Darwin fixes from #108630:
That last point is why I don't think it is a leaked failpoint: the same test sequence on Linux never hangs. It looks macOS-runner specific. After the final The current change moves the skip from the |
|
@groeneai Merging. Next time we should revert the PR that introduced the test if it's recent, like this case. |
CI finish ledger — 31584a4CI is complete on this head. No failed checks: Finish Workflow, Mergeable Check, PR, Style check, Config Workflow, and CI Tests all pass; CH Inc sync passes. The heavy test matrix is skipped by design (this PR only adds
Session id: cron:our-pr-ci-monitor:20260703-103000 |
Pull in #109254 (adds 04319_skip_unavailable_shards_mode_table_missing to ci/defs/darwin.skip), which resolves the sole remaining red on this PR: the Fast test (arm_darwin) failure of that test. The test is a darwin-only distributed-query flake unrelated to the merge-selector change; #109254 skips it on macOS. Net PR diff is unchanged (5 files, +89/-5).
…n-hang Skip 04319_skip_unavailable_shards_mode_table_missing on macOS fast test
Pull in ClickHouse#109254 (adds 04319_skip_unavailable_shards_mode_table_missing to ci/defs/darwin.skip), which resolves the sole remaining red on this PR: the Fast test (arm_darwin) failure of that test. The test is a darwin-only distributed-query flake unrelated to the merge-selector change; ClickHouse#109254 skips it on macOS. Net PR diff is unchanged (5 files, +89/-5).
Related: #79091
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
04319_skip_unavailable_shards_mode_table_missing(added in #79091, on master since 2026-07-03) hangs on the native macOS runner (Fast test (arm_darwin)) until the runner kills the process group withTimeout! Killing process group. It has done so on 7 unrelated PR runs (0 on Linux), and since #79091 merged it fails the arm_darwin fast test on every subsequent PR.Server-side trace of a hung run (all connections are
localhost, both cluster shards point at the same local server): the last INSERT (skip_unavailable_shards_mode = 'unavailable') correctly returnsUNKNOWN_TABLEfrom the missing-table shard, but the sibling sub-INSERT to the healthy shard is left open, and the followingDROP DATABASE shard_0then blocks on that table until the runner timeout fires (~82 s later the abandoned connection reportsATTEMPT_TO_READ_AFTER_EOF). This is a macOS-only socket-teardown timing artifact: on Linux the abandoned self-connection is torn down promptly andDROP DATABASEproceeds. I could not reproduce the hang on Linux in 100 targeted runs (exact test + amplified variants), so this is tagged as a macOS platform gap rather than a speculative server change.Tag the test
no-darwinso it is skipped on the macOS fast test while continuing to run (and assert full behavior) on all Linux sanitizer/arch configurations. This matches the existing macOS platform-gap handling inci/defs/darwin.skip/no-darwincuration.Version info
26.7.1.478(included in26.7and later)