question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CheckpointSettings.RemoveOutdated does not remove checkpoints between recoveries

See original GitHub issue

I’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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dhhoangcommented, Feb 19, 2022

By looking at the code, it seems obvious: checkpointManager.OnRecovery is called in InternalRecover but not in InternalRecoverAsync: https://github.com/microsoft/FASTER/blob/f8cc6ea7366d399388f977e9762e2822d54f4dec/cs/src/core/Index/Recovery/Recovery.cs#L327

0reactions
badrishccommented, Feb 20, 2022

Thanks for pointing out this divergence - we have fixed the isssue in latest on master branch.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found