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

CommitLog / Memtable flush: do not delete commit logs with unused entries #104

Closed
Terkwood opened this issue Aug 10, 2021 · 0 comments · Fixed by #108
Closed

CommitLog / Memtable flush: do not delete commit logs with unused entries #104

Terkwood opened this issue Aug 10, 2021 · 0 comments · Fixed by #108
Labels
bug Something isn't working

Comments

@Terkwood
Copy link
Owner

Terkwood commented Aug 10, 2021

In the case where we are replaying commit logs with a lot of entries, we don't want to delete the commit log in Memtable.flush ~line 41

We should use a second file for the replay mode, one that isn't deleted while being read.

tasks

  • double check that this is happening, read line probably locks the file so it can't be deleted
  • if that's the case, clean up the code so it's more clear what's going on
@Terkwood Terkwood added the bug Something isn't working label Aug 10, 2021
This was referenced Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant