Skip to content

ci: fix hangs during sending system.*_log to ci-logs - #78266

Merged
azat merged 1 commit into
ClickHouse:masterfrom
azat:ci/better-ci-logs-sender
Mar 26, 2025
Merged

azat merged 1 commit into
ClickHouse:masterfrom
azat:ci/better-ci-logs-sender

Conversation

@azat

@azat azat commented Mar 26, 2025

Copy link
Copy Markdown
Member

The problem is that it uses default send_timeout/receive_timeout, and for this period of time the distributed table cannot be shutted down.

Let's tune timeouts for sending data ci-logs.

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Fixes: #76133

@clickhouse-gh

clickhouse-gh Bot commented Mar 26, 2025 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [2349a12]

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Mar 26, 2025
The problem is that it uses default send_timeout/receive_timeout, and
for this period of time the distributed table cannot be shutted down.

Let's tune timeouts for sending data ci-logs.
@azat
azat force-pushed the ci/better-ci-logs-sender branch from eb87c28 to 2349a12 Compare March 26, 2025 00:06
@azat azat added 🍃 green ci 🌿 Fixing flaky tests in CI pr-must-backport Pull request should be backported intentionally. Use this label with great care! labels Mar 26, 2025
@azat

azat commented Mar 26, 2025

Copy link
Copy Markdown
Member Author

(Added pr-must-backport label to fix such issues on CI in release branches)

@azat

azat commented Mar 26, 2025

Copy link
Copy Markdown
Member Author

@azat
azat enabled auto-merge March 26, 2025 10:06
@azat
azat added this pull request to the merge queue Mar 26, 2025
Merged via the queue into ClickHouse:master with commit 4baea3a Mar 26, 2025
@azat
azat deleted the ci/better-ci-logs-sender branch March 26, 2025 10:36
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Mar 26, 2025
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-backports-created-cloud deprecated label, NOOP label Mar 26, 2025
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Mar 26, 2025
robot-ch-test-poll2 added a commit that referenced this pull request Mar 26, 2025
Backport #78266 to 25.2: ci: fix hangs during sending system.*_log to ci-logs
azat added a commit that referenced this pull request Mar 27, 2025
Backport #78266 to 25.3: ci: fix hangs during sending system.*_log to ci-logs
azat added a commit that referenced this pull request Mar 27, 2025
Backport #78266 to 25.1: ci: fix hangs during sending system.*_log to ci-logs
azat added a commit to azat/ClickHouse that referenced this pull request Apr 5, 2025
I found this on CI [1]:

    2025.03.25 21:30:01.453922 [ 129437 ] {} <Error> system.error_log_sender.DistributedInsertQueue.default: Code: 159. DB::Exception: Received from kng4alm55c.us-east-2.aws.clickhouse-staging.com:9440. DB::Exception: Wait for async insert timeout (120000 ms) exceeded). Stack trace:

  [1]: ClickHouse#78266 (comment)

And async_insert is useless there, since the batches should be big enough.

Note, that I thought about implementing some hints for background
Distributed INSERTs, relying on async_insert_max_data_size, but the
problem is that it will rely on client setting value, not the server.
@robot-clickhouse robot-clickhouse added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍃 green ci 🌿 Fixing flaky tests in CI pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-backports-created-cloud deprecated label, NOOP pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-not-for-changelog This PR should not be mentioned in the changelog 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.

"memory limit exceeded"/hungs while/due to sending data to ci-logs cluster

5 participants