-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
raftstore: fix a bug where snapshot file is not deleted in time
The issue is that if a leader fails to send a snapshot, it doesn't delete the snapshot file which may accumulate and waste disk space. The idle snapshot files will eventually be GCed, but that might take hours. Test Plan: Added a new integration test that would fail without the fix. Signed-off-by: Bisheng Huang <hbisheng@gmail.com>
- Loading branch information
Showing
2 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters