-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
kind/enhancementSomething could be better.Something could be better.status/acceptedWe accept to investigate or work on it.We accept to investigate or work on it.
Description
What version of Go are you using (go version)?
$ go version go version go1.14.2 amd64/linux
What operating system are you using?
Linux
What version of Badger are you using?
v1.6.1
Description
RunValueLogGC cannot be interrupted and can potentially run for minutes on a large enough datastore. This can be a problem if garbage collection is running on shutdown.
It would be nice to be able to pass a context to RunValueLogGC to cancel the process early. Alternatively, allowing a concurrent call to Close to interrupt a GC run would fix this. However, at the moment, close can't be called concurrently with anything else.
Would a new RunValueLogGCWithContext function be considered if a patch were proposed?
Metadata
Metadata
Assignees
Labels
kind/enhancementSomething could be better.Something could be better.status/acceptedWe accept to investigate or work on it.We accept to investigate or work on it.