Repository navigation
Fix flaky 04249_min_allocation_size_to_throw_on_memory_limit - #127979
Conversation
`grep -o -m1` stops after the first matching line, but prints every match on that line. When the error message contains `MEMORY_LIMIT_EXCEEDED` twice on one line, the test printed it twice and failed in `Fast test`, e.g. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=115050&sha=022cfff09c991631c8a4b90abf39ced8c2caec5b&name_0=PR&name_1=Fast%20test (#115050). Keep only the first match with `head -n1`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Workflow [PR], commit [c2dbb50] Summary: ✅ AI ReviewSummaryThe PR stabilizes Final VerdictStatus: ✅ Approve. |
rienath
left a comment
There was a problem hiding this comment.
Ok to merge as is, but would be nice to fix the root cause (either here or in follow-up). This happens because ClientBase stores client-side exceptions by wrapping their already formatted text in a new Exception, so the Code: N. DB::Exception: ... (NAME) part gets added again. When the memory limit is hit on the client side, the code shows up twice on one line. We can see it with
clickhouse local -q "SELECT 1" --format NonexistentFmt.
Code: 73. DB::Exception: Code: 73. DB::Exception: Code: 73. DB::Exception: Unknown format NonexistentFmt. Maybe you meant: []. (UNKNOWN_FORMAT) (version 25.11.2.24 (official build)). (UNKNOWN_FORMAT) (version 25.11.2.24 (official build)). (UNKNOWN_FORMAT)
|
🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=127979&sha=a7316800a92f8e6e1dc7ce84ae62cd004ade1594&name_0=PR&name_1=Fast%20test%20%28arm_darwin%29 ( @rienath, thanks for the root-cause analysis. Fixing the doubled |
|
The fix is in progress: #127925 (test-only, Cause:
|
rienath
left a comment
There was a problem hiding this comment.
We can create the PR with fix now. If it merges faster, this PR can be closed
|
🕵 The only failure, |
grep -o -m1stops after the first matching line but prints every match on that line. When theMEMORY_LIMIT_EXCEEDEDerror message mentions the code twice on one line, the test outputs it twice and fails, as inFast teston 2026-10-26 in #115050 and #117170:https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=115050&sha=022cfff09c991631c8a4b90abf39ced8c2caec5b&name_0=PR&name_1=Fast%20test
This change keeps only the first match with
head -n1.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/127979]
Version info
26.11.1.892-master(included in26.11and later)