You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
This looks like a useful enhancement since GC could take minutes at times to complete.The GC has two steps. The first sampling step can be exited at any time.
Github issues have been deprecated.
This issue has been moved to discuss. You can follow the conversation there and also subscribe to updates by changing your notification preferences.
What version of Go are you using (
go version
)?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 toClose
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?The text was updated successfully, but these errors were encountered: