Skip to content

MINOR: [1.17.x] Fix OOM in TestByteBitPacking512VectorLE on CI - #3983

Merged
Fokko merged 2 commits into
apache:parquet-1.17.xfrom
adoroszlai:backport-TestByteBitPacking512VectorLE-1.17.x
Nov 22, 2026
Merged

Fokko merged 2 commits into
apache:parquet-1.17.xfrom
adoroszlai:backport-TestByteBitPacking512VectorLE-1.17.x

Conversation

@adoroszlai

@adoroszlai adoroszlai commented Nov 22, 2026 •

Copy link
Copy Markdown

Rationale for this change

Intermittent OOME in TestByteBitPacking512VectorLE.

What changes are included in this PR?

Backport 73204ee from #3476.

Are these changes tested?

Yes:

Are there any user-facing changes?

No.

iemejia and others added 2 commits November 22, 2026 14:06
The 512-bit vector tests were allocating arrays of 268 million elements
(~1 GB each) and iterating through the entire value space (up to 524K
chunks for bitWidth=32). On the JDK 21 CI runner — which has AVX-512
support so the tests are not skipped — the heap was exceeded, causing
OutOfMemoryError in the DirectByteBuffer and ReadOnlyByteBuffer tests.

Reduce itemMax from 268435456 to 8192 (still 512+ vector iterations per
chunk) and only test the first and last chunks via a stream filter.
This covers both low-range and high-range boundary values while keeping
memory trivial (~33 KB per array) and runtime under 1 second.

Assisted-by: GitHub Copilot:claude-opus-4.6
(cherry picked from commit 73204ee)
@Fokko
Fokko merged commit fa7e74a into apache:parquet-1.17.x Nov 22, 2026
5 checks passed
@Fokko

Fokko commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Thank you @adoroszlai

@adoroszlai
adoroszlai deleted the backport-TestByteBitPacking512VectorLE-1.17.x branch November 22, 2026 20:37
@adoroszlai

Copy link
Copy Markdown
Author

Thanks @Fokko for reviewing and merging this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants