Skip to content

[common] A custom rounding policy that reduces Arrow's chunk size fm 16MB to 4MB which same as netty arena.#2732

Merged
loserwang1024 merged 3 commits intoapache:mainfrom
loserwang1024:chunk-4-mb
Apr 13, 2026
Merged

[common] A custom rounding policy that reduces Arrow's chunk size fm 16MB to 4MB which same as netty arena.#2732
loserwang1024 merged 3 commits intoapache:mainfrom
loserwang1024:chunk-4-mb

Conversation

@loserwang1024
Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #2729

Brief change log

Tests

API and Format

Documentation

@loserwang1024
Copy link
Copy Markdown
Contributor Author

Copy link
Copy Markdown
Member

@wuchong wuchong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @loserwang1024 , I left a comment.

Comment on lines +120 to +123
new RootAllocator(
AllocationListener.NOOP,
Long.MAX_VALUE,
FlussRoundingPolicy.DEFAULT_ROUNDING_POLICY);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that RecordAccumulator and KvManager also use the default RootAllocator constructor. Could you verify if these instances require updates as well?

If they do, please refactor the logic into a shared static method to prevent inconsistent initialization. If not, please add a comment explaining why the customized rounding policy is necessary here but not in those other components.

Copy link
Copy Markdown
Member

@wuchong wuchong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@loserwang1024 I pushed a commit to refactored the FlussRoundingPolicy to ArrowRoundingPolicy , and moved the BuferAllocator creator to BufferAllocatorUtil.

@loserwang1024 loserwang1024 merged commit 1b2ee92 into apache:main Apr 13, 2026
6 checks passed
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.

Use default chunk size as 4 MB than than 16Mb in arrow's rolling policy.

2 participants