Repository navigation
Fix flaky test 02161_addressToLineWithInlines - #107333
Conversation
|
Workflow [PR], commit [63fc5d6] Summary: ✅ AI ReviewSummaryThis PR narrows the flaky Final VerdictStatus: ✅ Approve |
bd92bc5 to
ba0e005
Compare
|
@groeneai does it look like this test fix could caused the server crash? |
|
@Felixoid No, this is a pre-existing engine crash and the test fix could not have caused it.
A rerun should be green. The underlying part-writer/ZSTD segfault is a real but rare engine bug that I will track separately; if the core dump artifact from this run is available it would help pin the corrupting writer. |
Deduplicate addresses before DWARF lookup
ba0e005 to
63fc5d6
Compare
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 377 line(s), 41 function(s) across 127 file(s) · Details Top files
|
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Deduplicate addresses before DWARF lookup
Description
addressToLineWithInlinesis a slow DWARF-lookup function (~100 ms per call against the large ClickHouse binary). The original query usedSELECT DISTINCT addressToLineWithInlines(arrayJoin(trace)), which evaluated the function for every address occurrence across all profiler samples before deduplication — potentially tens of thousands of calls when randomised test settings includemax_threads=1or a smallmax_block_size.Fix: deduplicate the raw addresses with an inner
SELECT DISTINCT arrayJoin(trace) LIMIT 1000first, then call the function only on the resulting unique set.Failure example:
Version info
26.6.1.829