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

fix: persist contents of read buffer if required #366

Closed
wants to merge 5 commits into from
Closed

Conversation

de-sh
Copy link
Contributor

@de-sh de-sh commented Oct 13, 2024

Closes #

Changes

Why?

Data in the current_read_file buffer is lost in a particular edge case, where read buffer has data swapped from write buffer, but flush doesn't care if it came from write buffer or persistence folder, leading to it getting chucked when the service is restarted.

Trials Performed

Added a test to verify behavior

@de-sh de-sh changed the title fix: persist contents of read buffer fix: persist contents of read buffer if required Oct 13, 2024
@de-sh de-sh marked this pull request as ready for review October 14, 2024 07:32
@amokfa
Copy link
Collaborator

amokfa commented Dec 18, 2024

Fixed in #371

@amokfa amokfa closed this Dec 18, 2024
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