-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Garbage collection doesn't free up space when using badger #4300
Comments
Yeah, that's because badger has to do a separate internal GC. Currently, we don't manually trigger it on repo GC but we probably should. |
It looks like this might have been "fixed" by ipfs/go-datastore#68 and the "Basic GC Implementation" commit to go-ds-badger (?). Should this work already or do the changes to go-ds-badger just need to bubble up? |
The changes are bubbled up, just not wired up to gc logic |
#4578 is going to fix this, at least for big datastores (few gigs with with 100s of MBs of reclaimable space). For full GC there is an offline tool being developed in hypermodeinc/badger#400, which will likely help with the cases where the online badger GC doesn't help |
#4578 has been merged and the GC logic is working, note however that the GC mechanism for |
Version information:
go-ipfs version: 0.4.11-
Repo version: 6
System version: amd64/linux
Golang version: go1.9
Type:
Bug
Severity:
Medium/High
Description:
When running garbage collection on a repo using the badger datastore, local storage is not freed up after running
ipfs repo gc
.The text was updated successfully, but these errors were encountered: