-
Notifications
You must be signed in to change notification settings - Fork 100
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
drop collection or database does not free up disk space #32
Comments
Hey @ysannezzz, that's a pretty big database, nice. :) The fix for this is to return true in CompactionFilter::IgnoreSnapshots() function here: https://github.com/facebook/rocksdb/blob/master/include/rocksdb/compaction_filter.h#L107-L115. The comments do a good job of describing this. I was waiting until couple of RocksDB release prove this function works in production. I think enough time has passed that we can implement this. I'll try to get to this soon. |
Hey @igorcanadi ,thank you for this answer. |
It's not immediate. You have to wait for compactions to happen as you keep writing more data into the database. |
How long should i wait for compaction to happen? |
…descriptor-v2 SERVER-25156 Add support for building v=2 indexes
After dropping a database. I found the actual physical size is not reduced.
Perhaps we should put each ident(index/datarecordstore) in different column family. |
We have large MongoDB database (about 400GB data file each day), MongoDB 3.2.6/3.2.7, engine rocksDB, operating system redhat 6.3.
After dropping the collection or database, the disk space used on the machine was not reclaimed.
After rming sst files which i think should by dropped by rocksdb,mongodb
can still work fine.
By the way,show dbs is not corresponding to du in linux.
Best Regards
The text was updated successfully, but these errors were encountered: