-
Notifications
You must be signed in to change notification settings - Fork 467
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
db: periodically sync the data directory during file deletions #3025
Comments
Hey @jbowens, I would like to contribute and fix this. Can you share some more context related to the issue? Thanks 🙌 |
@sidntrivedi012 — Sure! File deletions are performed by a Lines 149 to 172 in 844f058
Deletions are performed by calling (objstorage.Provider).Remove. I think we want to edit the main loop to call (objstorage.Provider).Sync after removing a file if the size of all the files deleted since the last call to |
@jbowens Got it. Thanks for the info. Hoping to get the PR up for it asap. |
@jbowens, @sidntrivedi012 I have taken the liberty to raise a PR based on the discussion above, please review! 🚀 |
We pace file deletions to avoid spikes in IO. However, the data directory is never synced, so IO is not necessarily scheduled yet. This could theoretically allow a buildup of unsynced file deletions. When the data directory is finally synced, IO may spike.
Noticed during the investigation of cockroachlabs/support#2673. It's unlikely to be the root cause of that particular.
Jira issue: PEBBLE-66
The text was updated successfully, but these errors were encountered: