-
Notifications
You must be signed in to change notification settings - Fork 167
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
OnFlushCompleted should update file discardable size #86
Comments
I don't know how to fix this one, since |
@yiwu-arbug
The problem is if all keys of a blob_file are deleted in memtable then we will still lose discardable_size. |
@wujy-cs sounds reasonable. So basically, a) mark the latest memtable id (say, M) after GC finish, b) wait till M flushed, then subtract file size by sum of output size of all memtables? |
@yiwu-arbug |
Currently we only update file discardable size in
OnCompactionCompleted
. We assume blob file data would not be discarded during flush, which is not true. Consider the case:The text was updated successfully, but these errors were encountered: