CheckpointSettings.RemoveOutdated does not remove checkpoints between recoveries
See original GitHub issueI’ve been testing FasterKV with CheckpointSettings.RemoveOutdated
set to true to avoid polluting the directory. So far it seems like this will only remove checkpoints within one lifetime of FasterKV
. If my application restarts and re-create FasterKV
, the old checkpoints are not removed.
So I tried to delete the checkpoint after recovering, and it seems to work:
var store = new FasterKV(...);
store.Recover();
if(Directory.Exists(checkpoint_dir)){
Directory.Delete(checkpoint_dir, recursive:true);
}
My question is: is it a safe thing to do? Will it impact the correctness of the FasterKV
store?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Can't delete a recovery checkpoint for a virtual machine in ...
Describes an issue that blocks you from deleting a recovery checkpoint for a virtual machine in System Center 2012 Data Protection Manager.
Read more >How to Solve Hyper-V Cannot Delete Checkpoint | 3 Solutions
Open the Hyper-V Manager -> Select the virtual machine for which you need to remove checkpoints -> Locate the Checkpoints tab -> Right-click...
Read more >HyperV Recovery checkpoints are unable to delete
my admin has created a bunch of checkpoints around 45 when i try to delete i receive an error stating "can not delete...
Read more >Removing Backup Checkpoint in Hyper-V That Has No ...
Hyper-V doesn't require much maintenance, but once in a while you may see a checkpoint (formerly called snapshot) that cannot be deleted.
Read more >Windows backups creating a checkpoint every night and I ...
You can't delete checkpoints. Just shut down the VM and merge them. To merge checkpoints: Highlight VM > Edit Disk.. Location: ( ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
By looking at the code, it seems obvious:
checkpointManager.OnRecovery
is called inInternalRecover
but not inInternalRecoverAsync
: https://github.com/microsoft/FASTER/blob/f8cc6ea7366d399388f977e9762e2822d54f4dec/cs/src/core/Index/Recovery/Recovery.cs#L327Thanks for pointing out this divergence - we have fixed the isssue in latest on master branch.