-
Notifications
You must be signed in to change notification settings - Fork 23
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
Compacting DB hangs indefinitely when done manually #57
Comments
This is actually happening, when |
Thanks for reporting @eksperimental , let me look into this. If you do have a sample project or a test to reproduce it, that’s definitely very helpful, as I have been unable to reproduce this so far. |
One thing that strikes me as odd: the database file is called |
Never mind what I wrote above about the file name, it simply means that the previous compactions didn’t complete by the time the main process was stopped, or crashed. |
Hi @eksperimental , I did not manage to reproduce this. Do you maybe have more info on how to trigger this issue? Possibly a specific sequence of actions? Thank you |
Hi @lucaong |
I tried reproducing it with tens of thousands of concurrent writes, but no luck. On what OS and CubDB version did you experience this issue? Do you use auto compaction or only manual? |
Hi @lucaong
I notice compacting the DB with
CubDB.compact/1
hangs indefinitely.You can see how the .cub file changes over time and the .compact file reached a size an never moves from there.
Let me know if you need any more information. I could create a sample project if needed.
Cheers
The text was updated successfully, but these errors were encountered: