Skip to content

Revert Throttler trace logging and fix flaky tests - #100724

Merged
Algunenano merged 5 commits into
ClickHouse:masterfrom
Algunenano:fix-02813-text-log-tsan-v2
Mar 31, 2026
Merged

Algunenano merged 5 commits into
ClickHouse:masterfrom
Algunenano:fix-02813-text-log-tsan-v2

Conversation

@Algunenano

@Algunenano Algunenano commented Mar 25, 2026 •

Copy link
Copy Markdown
Member

Revert the Throttler trace logging added in #100228 (follow-up to #95127). The LOG_TRACE on the non-sleeping fast path fires on every single I/O operation when max_speed > 0, generating ~145K messages/minute under TSan builds. This overflows the AsyncLogMessageQueue, causing message drops that break unrelated tests relying on text_log — like 02813_starting_in_text_log and 03312_line_numbers.

The revert also restores the text_log assertions in 01165_lost_part_empty_partition that were removed in #100434 as a workaround for the same log overflow.

Additionally, fix the 02813_starting_in_text_log query which was suboptimal:

  • Filter by logger_name = 'Application' to avoid the query matching itself in text_log.
  • Use uptime() to narrow the time window to around server start.
  • Add LIMIT 1 since we only need to confirm one startup entry exists.
  • Add SET max_execution_time = 0 to avoid TOO_SLOW exceptions under sanitizers.

Closes #100566
Closes #100715

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry:

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.4.1.438

Algunenano and others added 3 commits March 25, 2026 16:33
…5127"

This reverts commit c4a081c, reversing
changes made to e12cd5d.
…y-01165-lost-part-empty-partition"

This reverts commit 760a61d, reversing
changes made to 2e094c3.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@Algunenano Algunenano added the 🍃 green ci 🌿 Fixing flaky tests in CI label Mar 25, 2026
@clickhouse-gh

clickhouse-gh Bot commented Mar 25, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [5bdbd89]

Summary: ❌

job_name test_name status info comment
Stress test (arm_msan) failure
MemorySanitizer: use-of-uninitialized-value (STID: 2410-47e0) FAIL cidb IGNORED

AI Review

Summary

This PR reverts high-volume Throttler trace/test logging introduced earlier, updates Throttler constructor call sites accordingly, and tightens text_log-based flaky tests (01165, 02813). I reviewed the changed C++ and test SQL paths for correctness, safety, and rollout risk; I did not find high-confidence issues requiring changes.

ClickHouse Rules
Item Status Notes
Deletion logging ✅
Serialization versioning ➖
Core-area scrutiny ✅
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ✅
SettingsChangesHistory.cpp ➖
PR metadata quality ✅
Safe rollout ✅
Compilation time ✅
Final Verdict
  • Status: ✅ Approve

@Algunenano

Copy link
Copy Markdown
Member Author

Statistics issue: Already fixed
MSAN issue: Already fixed

@Algunenano
Algunenano enabled auto-merge March 27, 2026 10:03
@clickhouse-gh

clickhouse-gh Bot commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.20% 84.20% +0.00%
Functions 90.90% 90.90% +0.00%
Branches 76.80% 76.80% +0.00%

Changed lines: 87.06% (148/170) · Uncovered code

Full report · Diff report

@Algunenano
Algunenano added this pull request to the merge queue Mar 31, 2026
Merged via the queue into ClickHouse:master with commit 7f92f78 Mar 31, 2026
315 of 320 checks passed
@Algunenano
Algunenano deleted the fix-02813-text-log-tsan-v2 branch March 31, 2026 09:41
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Mar 31, 2026
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-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.

2 participants