-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
GC doesn't seem to run #2003
Comments
may be related to #1995. Thanks for filling an issue with code to reproduce. I will try to find some time to look into it. |
Maybe the compaction is not triggered. Similar to https://discuss.dgraph.io/t/gc-may-not-work-in-some-cases/17197 |
Hi Friends. Any updates on this? Ty |
@mangalaman93 Would it possible for you to take a look when you have some time ? Thank you ! |
This issue has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open. |
Any updates ? Thanks ! |
Here's some information I hope could be of interest:
So if you want GC to happen more often, you must make it so compaction happens more often. In my test, I used the following (extreme!) params before I could see things happen over a few minutes (with constant additions... the LSM doesn't fill in fast with high threshold).
Of course I do not recommend these params, I just wanted to make sure Badger does indeed GC, with the right conditions. Make sure you understand each param and don't blame me 🤣 All in all, GC works, if compaction occurs and compacts TTL'ed entries. |
What version of Badger are you using?
Latest v4
What version of Go are you using?
1.20.3
Have you tried reproducing the issue with the latest release?
Yes
What is the hardware spec (RAM, CPU, OS)?
16gb ram, i5 intel, mac os
What steps will reproduce the bug?
Expected behavior and actual result.
Since the keys are expiring in 30 seconds, I thought that the files in badger/ would get removed.
However, heres what I see:
Additional information
No response
The text was updated successfully, but these errors were encountered: