Repository navigation
Count only LOGICAL_ERROR in the text_log check of 05453_webterminal_close_during_insert - #128545
Conversation
…nal_close_during_insert` The last check of the test counted every `Error` record of the whole server containing `Cannot write to canceled buffer` since the test started. The same text is used by the ordinary `CANNOT_WRITE_AFTER_BUFFER_CANCELED` (734) that `WriteBuffer::writeSlow(const char *, size_t)` throws, so a concurrent test getting a legitimate Code 734 failed this test. On PR ClickHouse#120908 the two counted rows came from `01513_optimize_aggregation_in_order_memory_long` (a parallel replicas follower writing into a canceled connection buffer). Count only the `LOGICAL_ERROR` form of the message, the bug the test guards. The error may be logged with context (`While executing ValuesBlockInputFormat`) between the text and the error code name, so the pattern allows anything in between. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus my own review (1 nit).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261101-230900 |
|
Workflow [PR], commit [e22c793] Summary: ✅ AI ReviewSummaryPR #128545 narrows the final assertion in Final Verdict✅ Approve. No changes requested. |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-41:20261101-225600 |
|
cc @azat, could you review this and add the |
aa863c3
Related: #127834
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix the flaky test
05453_webterminal_close_during_insertwhen it runs in parallel with other tests.Description
05453_webterminal_close_during_insertfailed on PR #120908 (job): the last check expected0error records withCannot write to canceled bufferinsystem.text_logand got2.The check counts such records in the whole server since the test started. The same text is also the ordinary
CANNOT_WRITE_AFTER_BUFFER_CANCELED(734) ofWriteBuffer::writeSlow(const char *, size_t), while the bug the test guards is theLOGICAL_ERRORofwriteSlow(char). In that job both records were Code 734 from the concurrent test01513_optimize_aggregation_in_order_memory_long(a parallel replicas follower writing into a canceled connection buffer).The check now counts only
message LIKE '%Cannot write to canceled buffer%(LOGICAL_ERROR)%'. The%before the code name is needed because the pipeline executors also log the error with context (...buffer: While executing ValuesBlockInputFormat. (LOGICAL_ERROR)).Validation on master release builds with
abort_on_logical_error = 0, plus a concurrent loop of Code 734 errors with the same text:9efc32dc): the new check still fails 5/5 and counts the same records as the old one (1 or 4 per run).🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/128545]
Version info
26.11.1.1085-master(included in26.11and later)