-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix](catalog) Fix mark handling for failed tasks to maintain getLeft…
…Marks (#46205) Many pieces of code use `getLeftMarks` to check whether a task is finished. Therefore, when a task fails, its mark should not be deleted directly. For example, when creating a tablet, the left marks are used to track how many replicas were successfully created. If the number of successful replicas exceeds the quorum, the tablet is considered successfully created. However, if the mark is deleted due to failure, it could lead to a situation where the majority of replicas fail to be created, but the tablet is still mistakenly considered as successfully created. This PR addresses the issue by saving the mark of the failed task in a separate map while maintaining the method's idempotency.
- Loading branch information
Showing
3 changed files
with
11 additions
and
3 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
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