-
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
Does dropPrefix remove !badger!move keys? #1288
Comments
Hey @sana-jawad, we do not clean up the We could perform lookups for all |
Thanks @jarifibrahim for the reply. It makes sense. I have a suggestion for dropPrefix method: When dropPrefix is called for a "prefix", the dropPrefix should also drop keys with !badger!move+prefix. For drop prefix the choice is much more easy to make. Right now as a work around I am calling dropPrefix two times: Also an observation, lower the value of discardRatio the higher the number of !badger!move keys. And thus more the number of !badger!move keys, the size on disk keeps on increasing over time. It may be added in the comments for discardRatio. |
Thanks @sana-jawad. The |
…o plays a big role in memory consumption. (#114) Upgraded Badger version. Added flattening at start up time. Fixed the event count spreading issue which resulted in uneven data distribution across partitions. Moved to drop prefix as it yields better space claim. Added feature flag for switching to delete prefix. Also changed the numberfversions to 0 so that delete prefix would reclaim space. hypermodeinc/badger#1228 Fixed the issue of unclaimed !badger!move prefixes which are never cleaned up. Details: hypermodeinc/badger#1288 Added support in debugging pages to see internal keys.
This has been fixed via #1331. |
What version of Go are you using (
go version
)?What version of Badger are you using?
2.0.2
Does this issue reproduce with the latest master?
yes
What are the hardware specifications of the machine (RAM, OS, Disk)?
16 GB, Mac OS, 2TB
What did you do?
What did you expect to see?
All ValueLog files except one would be cleaned up and there are no internal move keys.
What did you see instead?
!badger!move keys are not cleaned up.
The text was updated successfully, but these errors were encountered: