Repository navigation
Map arrow OutOfMemory status to MEMORY_LIMIT_EXCEEDED when reading Parquet record batches (26.3) - #113970
Merged
Conversation
…g Parquet record batches After the `arrow` 25.0.0 bump (#113539), an allocation failure inside `RecordBatchReader::Next` surfaces as an arrow `OutOfMemory` status instead of propagating the memory-tracker exception, so the error was reported as `CANNOT_READ_ALL_DATA` (33) instead of `MEMORY_LIMIT_EXCEEDED` (241), making `03147_parquet_memory_tracking` flaky on 26.3. Map `IsOutOfMemory` to `MEMORY_LIMIT_EXCEEDED` at this call site, like the `THROW_ARROW_NOT_OK` macro already does. Seen in: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=113929&sha=731b917fb0a2533da48dc46dc334bd30c8570bfe&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan%2C%20db%20disk%2C%20distributed%20plan%2C%20sequential%29 On PR: #113929 Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
|
Workflow [BackportPR], commit [2988b4d] Summary: ✅ |
alexey-milovidov
commented
Aug 9, 2026
alexey-milovidov
left a comment
Member
Author
There was a problem hiding this comment.
Of course, the right thing to do was to not backport unimportant library updates. But now we have this fix, and it is mergeable, so ok.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Fixes flakiness of
03147_parquet_memory_trackingon the26.3branch. After thearrow25.0.0 bump was backported (#113539), an allocation failure insideRecordBatchReader::Nextcan surface as an arrowOutOfMemorystatus instead of propagating the memory-tracker exception, so the query failed withCANNOT_READ_ALL_DATA(33) instead of the expectedMEMORY_LIMIT_EXCEEDED(241). This mapsIsOutOfMemorytoMEMORY_LIMIT_EXCEEDEDat that call site, exactly as theTHROW_ARROW_NOT_OKmacro in the same file already does.This targets
26.3directly because the legacyParquetBlockInputFormatwas removed onmaster(replaced by the native reader), so the bug does not exist there; among supported branches only25.8and26.3still have this file, and only26.3has the arrow 25.0.0 bump.Seen in: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=113929&sha=731b917fb0a2533da48dc46dc334bd30c8570bfe&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan%2C%20db%20disk%2C%20distributed%20plan%2C%20sequential%29
Related: #113929
Related: #113539