Skip to content

Conversation

@mergify
Copy link

@mergify mergify bot commented Feb 26, 2025

We must consider whether the previous current file is empty (has data written, but was already removed) when writing large messages and opening a file specifically for the large message. If we don't, then the file will never get deleted as we only consider files for deletion when a message gets removed (and there are none).

This is only an issue for large messages. Small messages write a message than roll over to a new file, so there is at least one valid message. Large messages close the current file first, regardless of there being a valid message.


This is an automatic backport of pull request #13430 done by [Mergify](https://mergify.com).

We must consider whether the previous current file is empty
(has data written, but was already removed) when writing
large messages and opening a file specifically for the large
message. If we don't, then the file will never get deleted
as we only consider files for deletion when a message gets
removed (and there are none).

This is only an issue for large messages. Small messages
write a message than roll over to a new file, so there is
at least one valid message. Large messages close the current
file first, regardless of there being a valid message.

(cherry picked from commit 6cf69e2)
@lhoguin lhoguin added this to the 4.1.0 milestone Feb 26, 2025
@lhoguin lhoguin merged commit 004f060 into v4.1.x Feb 26, 2025
269 checks passed
@lhoguin lhoguin deleted the mergify/bp/v4.1.x/pr-13430 branch February 26, 2025 14:26
lhoguin added a commit that referenced this pull request Feb 26, 2025
Fix CQ shared store files not deleted with large messages (backport #13430) (backport #13432)
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