Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core][bug] Write Spillable with memory preemption has bug : preempt memory will cause writer flush memory to disk which should not happen #2940

Merged
merged 3 commits into from
Mar 4, 2024

Conversation

leaves12138
Copy link
Contributor

Fix bug when open spillable, still many small files generated.

…cause writer flush memory to disk which should not happen
@@ -279,7 +279,11 @@ public long memoryOccupancy() {

@Override
public void flushMemory() throws Exception {
flush(false, false);
if (sinkWriter.bufferSpillableWriter()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

just same to MergeTreeWriter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

MergeTreeWriter seems don't have this bug.

@JingsongLi
Copy link
Contributor

+1

@JingsongLi JingsongLi merged commit 5e2fcfc into apache:master Mar 4, 2024
9 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.

2 participants