Repository navigation
tests: fix 01563_distributed_query_finish flakiness from CI log-sender bursts - #105457
Merged
Merged
Conversation
The test compares the global system.errors NETWORK_ERROR counter before and after each iteration and expects at least one iteration with delta 0. When the CI system.*_log_sender background pool generates a burst of connection errors against its remote destination, every iteration overlaps with at least one new error and the test fails with NETWORK_ERROR=N. Wrap the loop in SYSTEM STOP/START DISTRIBUTED SENDS so the async insert sender stops shipping queued .bin files for the duration of the test. SELECT from dist_01247 is unaffected because ActionLocks::DistributedSend only gates async_insert_blocker, not the SELECT path.
Contributor
|
Workflow [PR], commit [ba942ea] Summary: ❌
AI ReviewSummaryThis PR updates Final Verdict
|
This was referenced May 20, 2026
Algunenano
enabled auto-merge
May 22, 2026 14:30
DavidHe-2008
pushed a commit
to DavidHe-2008/ClickHouse
that referenced
this pull request
Jun 1, 2026
…istributed-sends tests: fix 01563_distributed_query_finish flakiness from CI log-sender bursts
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.
The test compares the global
system.errorsNETWORK_ERRORcounterbefore and after each iteration of a
DistributedSELECTloop, andexpects at least one iteration with delta 0. The CI environment installs
system.*_log_senderDistributedtables (viaci/jobs/scripts/functional_tests/setup_log_cluster.sh) that ship systemlogs to a remote ClickHouse endpoint. When that endpoint is unreachable
(today: ~70% connection-reset rate on
kng4alm55c.us-east-2.aws.clickhouse-staging.com:9440, peak ~4 errors/s),every iteration overlaps with at least one new background
NETWORK_ERRORand the test fails with
NETWORK_ERROR=N. All 6 failures today sharethis pattern across 5 unrelated PRs and
release/26.2, clustered in asingle hour — clearly infrastructure, not a code regression.
Wrap the loop in
SYSTEM STOP/START DISTRIBUTED SENDSso the backgroundasync-insert sender stops shipping queued
.binfiles for the durationof the test. The
ActionLocks::DistributedSendlock only gatesasync_insert_blockerinStorageDistributed::getActionLock, which isconsulted exclusively by
DistributedAsyncInsertDirectoryQueue— so thetest's own
SELECT FROM dist_01247is unaffected.CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=105053&sha=af01ec85282c49af3fed289c244018319a061ba3&name_0=PR&name_1=Stateless%20tests%20%28amd_tsan%2C%20sequential%2C%202%2F2%29
Closes #105452
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix flakiness of
01563_distributed_query_finishwhen the CI log-shipping endpoint is unreachable.Version info
26.6.1.95