Skip to content

Downgrade LOG_WARNING to LOG_INFO for use_hedged_requests with parallel replicas - #98689

Merged
alexey-milovidov merged 3 commits into
masterfrom
fix-hedged-parallel-replicas-warning
Mar 4, 2026
Merged

alexey-milovidov merged 3 commits into
masterfrom
fix-hedged-parallel-replicas-warning

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Mar 4, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Downgrade LOG_WARNING to LOG_INFO in updateContextForParallelReplicas when use_hedged_requests is combined with enable_parallel_replicas
  • The server already handles this gracefully by disabling hedged requests — a warning is unnecessarily alarming
  • This is a better fix than Disable use_hedged_requests when parallel replicas are enabled in test randomisers #98519 because it still allows the stress test to exercise the combination of both settings for memory safety and assertion checking

The LOG_WARNING was forwarded to the client's stderr (since --server-logs-level defaults to "warning"), causing test failures with FailureReason.STDERR. An INFO message is sufficient since the situation is automatically resolved.

CI report

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

...

🤖 Generated with Claude Code

Version info

  • Merged into: 26.3.1.386

…el replicas

When `use_hedged_requests` is combined with `enable_parallel_replicas`,
the server gracefully disables hedged requests. There is no need for a
`LOG_WARNING` here — it causes stress test failures because the warning
is forwarded to the client's stderr and any stderr output makes the test
fail. An `INFO` message is sufficient since the situation is handled
automatically.

This is a better fix than #98519
because it still allows the stress test to exercise the combination of
both settings for memory safety and assertion checking.

https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=28cd79a24459619126bbecbd3d836afd370b333d&name_0=MasterCI&name_1=Stress%20test%20%28azure%2C%20amd_tsan%29

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Mar 4, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [d883958]

Summary: ❌

job_name test_name status info comment
Integration tests (amd_msan, 2/6) failure
test_hedged_requests/test.py::test_long_query FAIL cidb

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Mar 4, 2026
alexey-milovidov and others added 2 commits March 4, 2026 10:02
The test was checking for a `Warning` level log with the old message text,
but the code now always emits an `Information` level message with unified text.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@Algunenano Algunenano self-assigned this Mar 4, 2026

@Algunenano Algunenano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. I also prefer find this simpler to #98519

@alexey-milovidov
alexey-milovidov merged commit 0f10f03 into master Mar 4, 2026
144 of 145 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix-hedged-parallel-replicas-warning branch March 4, 2026 16:12
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Mar 4, 2026
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.

3 participants