Repository navigation
Conversation
The two `SELECT 'Ok' FROM system.text_log` assertions were flaky because text log writes are asynchronous and `SYSTEM FLUSH LOGS` does not guarantee all async text-log entries are fully materialized. CI logs from a failing run (PR ClickHouse#100699, amd_tsan) show ~430K messages dropped from `AsyncLogMessageQueue` due to queue overflow during the test's execution window, confirming the messages were permanently lost. The remaining `query_log` assertions are deterministic (synchronous flush) and fully cover the feature under test: correct `script_query_number` and `script_line_number` propagation. https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=100699&sha=d3364a856816a3c582441841e5a85806271c9a6f&name_0=PR&name_1=Stateless%20tests%20%28amd_tsan%2C%20parallel%2C%201%2F2%29 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Detailed AnalysisWhat failedTest Failure history (last 30 days): Root cause:
|
|
Workflow [PR], commit [68104ed] Summary: ✅ AI ReviewSummaryThis PR removes two flaky ClickHouse Rules
Final Verdict
|
|
This is caused by too many throttler logs: #100228 @serxa @alexey-milovidov We have way too many logs now: Basically this only works because async logger works as it is, with sync logger the performance would be really affected |
Algunenano
left a comment
There was a problem hiding this comment.
The fix is avoiding overflowing text_log
|
Yes that is correct, but the analysis still made sense to me. If we don't need to check text_log why do it? |
|
It's checking that the text_log shows line numbers, e.g. |
|
Which is just same info from query log printed (script_query_number, script_line_number). But okay maybe it makes sense to check we are printing that exact info. |
|
They are different paths and different logs, it's better to test them both if we want the feature in both |
Remove two flaky
system.text_logassertions from test03312_line_numbers. Thetext_logchecks were non-deterministic because text log ingestion is asynchronous andSYSTEM FLUSH LOGSdoes not guarantee all entries are materialized. The remainingquery_logassertions are deterministic and fully coverscript_query_number/script_line_numbertracking.CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=100699&sha=d3364a856816a3c582441841e5a85806271c9a6f&name_0=PR&name_1=Stateless%20tests%20%28amd_tsan%2C%20parallel%2C%201%2F2%29
#100699
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes