-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix](restore) Make the DirMoveTask idempotent. (#47313)
Since the DirMoveTask is executed asynchronously, the FE might send the task again to ensure its completion eventually. But the rowsets committed during two DirMoveTasks (if any) will be dropped, which causes the data loss. This PR adds a LOADED tag file to indicate that the snapshot has been loaded into a tablet and should not be reloaded again.
- Loading branch information
1 parent
4ec7f89
commit e0e78fa
Showing
2 changed files
with
278 additions
and
5 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