-
Notifications
You must be signed in to change notification settings - Fork 130
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
Badger Compaction Issue #90
Comments
Thanks - we're looking at this internally as well. I will do some investigation and get back to you. |
Local repro was as easy as you described. Treating this as a high pri issue. |
I'm hopeful that an updated badger version fixes this. There's an issue referenced in dgraph-io/badger#1062 that was fixed in the latest release. This is a data-store breaking change, unfortunately. But better now than later on down the line. Interestingly, this won't actually fix the max-disk-mb=1 method of reproducing the issue. What's happening there is that our compaction runs in a tight loop, since it doesn't have the disk space to store the current state of all the k8s resources. We should have a better (really, any at all) error message in the UI declaring that you need to allocate at least enough disk space to store the current state. (That would be a good first issue!) The upgrade to badger v2 should fix the compaction oom crash, though. I'm still testing. |
Ive been looking into this a bit. Sloop has a background job to detect when there is too much data on disk and clean up old keys with Badger DropPrefix. It appears that is not resulting in any actual cleanup on the disk, so it goes into a fairly tight loop. While DropPrefix is running all reads and writes to Badger are blocked. Still researching a fix. |
Give the latest build a try. In is after the badger v2 upgrade, so you will need to wipe your old data unfortunately. But supposedly badger is going to stop making breaking changes. |
Hi, there's an issue with Sloop that occurs when you consume all of
maxDiskDb
and a compaction runs, the sloop graphs disappear (and subsequent writes aren't made to the DB).I'm able to consistently reproduce this by installing the latest helm chart without any overrides, except adding
--max-disk-mb=1
to the command line.It seems to occur after these events:
The text was updated successfully, but these errors were encountered: