Skip to content

[core] Enables buffer spill when targetFileSize is greater than the w…#5121

Merged
JingsongLi merged 1 commit intoapache:masterfrom
LinMingQiang:master-imp-enable-spill
Feb 28, 2025
Merged

[core] Enables buffer spill when targetFileSize is greater than the w…#5121
JingsongLi merged 1 commit intoapache:masterfrom
LinMingQiang:master-imp-enable-spill

Conversation

@LinMingQiang
Copy link
Contributor

…rite buffer size.

Purpose

The purpose of this PR is to reduce small files.

When I set target-file-size=1GB and write-buffer-for-append=true, write-buffer-size=256m,
I found that my final file size is always smaller than write-buffer-size=256m and will never reach the 1gb I expected.
This resulted in a lot of small files being generated.

So when target-file-size is greater than write-buffer-size, spill should be enabled automatically.

Linked issue: close #xxx

Tests

API and Format

Documentation

@LinMingQiang LinMingQiang force-pushed the master-imp-enable-spill branch from b660631 to 6aa7a03 Compare February 20, 2025 10:06
@LinMingQiang LinMingQiang force-pushed the master-imp-enable-spill branch 2 times, most recently from a5df99f to ef100eb Compare February 24, 2025 14:57
@LinMingQiang LinMingQiang reopened this Feb 25, 2025
@LinMingQiang LinMingQiang force-pushed the master-imp-enable-spill branch from ef100eb to d614a92 Compare February 25, 2025 06:19
@LinMingQiang
Copy link
Contributor Author

ut failure is not caused by this pr.

Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

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

+1

@JingsongLi JingsongLi merged commit b1ccfb8 into apache:master Feb 28, 2025
13 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.

3 participants