-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BugFix] Fix the bug in the FE clone scheduling that causes an infinite loop #50561
Merged
Conversation
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
…e loop Signed-off-by: sevev <[email protected]>
Signed-off-by: sevev <[email protected]>
Signed-off-by: sevev <[email protected]>
Signed-off-by: sevev <[email protected]>
Signed-off-by: sevev <[email protected]>
Quality Gate passedIssues Measures |
[Java-Extensions Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[FE Incremental Coverage Report]✅ pass : 4 / 4 (100.00%) file detail
|
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
gengjun-git
approved these changes
Sep 5, 2024
HangyuanLiu
approved these changes
Sep 6, 2024
@Mergifyio backport branch-3.3 |
@Mergifyio backport branch-3.2 |
@Mergifyio backport branch-3.1 |
✅ Backports have been created
|
✅ Backports have been created
|
✅ Backports have been created
|
mergify bot
pushed a commit
that referenced
this pull request
Sep 6, 2024
…te loop (#50561) ## Why I'm doing: Some `VERSION_INCOMPLETE` replicas may not be able to be scheduled for clone repair, such as the following scenario: 1. The partition visible version is `100` because there are some replica version is still `100` and version `101` publish failed. 2. The ingestion task is continuous and the lastest committed version is `120`. 3. There are two VERSION_INCOMPLETE` replicas, the first replica commit version `101` and `120` failed, so the first replica version is `100`, last failed version is `120`. The second replica commit version `102` and `108` failed, so the second replica version is `101` and the last failed version is `108`. 5. We consider these two replicas are needed to repair because their `last failed version` are both greater than 0 and we will choose the replica which `last failed version` is smaller to repair first. 6. However, we use visible version in clone task because the clone task can only clone the data with visible version. So the second replica version is still `101` and last failed version is `108`. 7. After clone, the second version is still `VERSION_INCOMPLETE` and we will try to repair again and again which cause the first replica can not repair any more and the the partition visible version is blocked. ## What I'm doing: Try to fix the replica which version is smaller first. Signed-off-by: sevev <[email protected]> (cherry picked from commit 19b833f)
mergify bot
pushed a commit
that referenced
this pull request
Sep 6, 2024
…te loop (#50561) ## Why I'm doing: Some `VERSION_INCOMPLETE` replicas may not be able to be scheduled for clone repair, such as the following scenario: 1. The partition visible version is `100` because there are some replica version is still `100` and version `101` publish failed. 2. The ingestion task is continuous and the lastest committed version is `120`. 3. There are two VERSION_INCOMPLETE` replicas, the first replica commit version `101` and `120` failed, so the first replica version is `100`, last failed version is `120`. The second replica commit version `102` and `108` failed, so the second replica version is `101` and the last failed version is `108`. 5. We consider these two replicas are needed to repair because their `last failed version` are both greater than 0 and we will choose the replica which `last failed version` is smaller to repair first. 6. However, we use visible version in clone task because the clone task can only clone the data with visible version. So the second replica version is still `101` and last failed version is `108`. 7. After clone, the second version is still `VERSION_INCOMPLETE` and we will try to repair again and again which cause the first replica can not repair any more and the the partition visible version is blocked. ## What I'm doing: Try to fix the replica which version is smaller first. Signed-off-by: sevev <[email protected]> (cherry picked from commit 19b833f)
mergify bot
pushed a commit
that referenced
this pull request
Sep 6, 2024
…te loop (#50561) ## Why I'm doing: Some `VERSION_INCOMPLETE` replicas may not be able to be scheduled for clone repair, such as the following scenario: 1. The partition visible version is `100` because there are some replica version is still `100` and version `101` publish failed. 2. The ingestion task is continuous and the lastest committed version is `120`. 3. There are two VERSION_INCOMPLETE` replicas, the first replica commit version `101` and `120` failed, so the first replica version is `100`, last failed version is `120`. The second replica commit version `102` and `108` failed, so the second replica version is `101` and the last failed version is `108`. 5. We consider these two replicas are needed to repair because their `last failed version` are both greater than 0 and we will choose the replica which `last failed version` is smaller to repair first. 6. However, we use visible version in clone task because the clone task can only clone the data with visible version. So the second replica version is still `101` and last failed version is `108`. 7. After clone, the second version is still `VERSION_INCOMPLETE` and we will try to repair again and again which cause the first replica can not repair any more and the the partition visible version is blocked. ## What I'm doing: Try to fix the replica which version is smaller first. Signed-off-by: sevev <[email protected]> (cherry picked from commit 19b833f)
This was referenced Sep 6, 2024
wanpengfei-git
pushed a commit
that referenced
this pull request
Sep 6, 2024
…te loop (backport #50561) (#50780) Co-authored-by: zhangqiang <[email protected]>
@mergify backport branch-2.5 |
✅ Backports have been created
|
mergify bot
pushed a commit
that referenced
this pull request
Sep 6, 2024
…te loop (#50561) ## Why I'm doing: Some `VERSION_INCOMPLETE` replicas may not be able to be scheduled for clone repair, such as the following scenario: 1. The partition visible version is `100` because there are some replica version is still `100` and version `101` publish failed. 2. The ingestion task is continuous and the lastest committed version is `120`. 3. There are two VERSION_INCOMPLETE` replicas, the first replica commit version `101` and `120` failed, so the first replica version is `100`, last failed version is `120`. The second replica commit version `102` and `108` failed, so the second replica version is `101` and the last failed version is `108`. 5. We consider these two replicas are needed to repair because their `last failed version` are both greater than 0 and we will choose the replica which `last failed version` is smaller to repair first. 6. However, we use visible version in clone task because the clone task can only clone the data with visible version. So the second replica version is still `101` and last failed version is `108`. 7. After clone, the second version is still `VERSION_INCOMPLETE` and we will try to repair again and again which cause the first replica can not repair any more and the the partition visible version is blocked. ## What I'm doing: Try to fix the replica which version is smaller first. Signed-off-by: sevev <[email protected]> (cherry picked from commit 19b833f)
42 tasks
wanpengfei-git
pushed a commit
that referenced
this pull request
Sep 6, 2024
…te loop (backport #50561) (#50778) Co-authored-by: zhangqiang <[email protected]>
xiangguangyxg
pushed a commit
to xiangguangyxg/starrocks
that referenced
this pull request
Sep 6, 2024
…te loop (backport StarRocks#50561) (StarRocks#50778) Co-authored-by: zhangqiang <[email protected]>
wanpengfei-git
pushed a commit
that referenced
this pull request
Sep 9, 2024
…te loop (backport #50561) (#50787) Signed-off-by: sevev <[email protected]> Co-authored-by: zhangqiang <[email protected]>
HangyuanLiu
pushed a commit
to HangyuanLiu/starrocks
that referenced
this pull request
Sep 12, 2024
…te loop (StarRocks#50561) ## Why I'm doing: Some `VERSION_INCOMPLETE` replicas may not be able to be scheduled for clone repair, such as the following scenario: 1. The partition visible version is `100` because there are some replica version is still `100` and version `101` publish failed. 2. The ingestion task is continuous and the lastest committed version is `120`. 3. There are two VERSION_INCOMPLETE` replicas, the first replica commit version `101` and `120` failed, so the first replica version is `100`, last failed version is `120`. The second replica commit version `102` and `108` failed, so the second replica version is `101` and the last failed version is `108`. 5. We consider these two replicas are needed to repair because their `last failed version` are both greater than 0 and we will choose the replica which `last failed version` is smaller to repair first. 6. However, we use visible version in clone task because the clone task can only clone the data with visible version. So the second replica version is still `101` and last failed version is `108`. 7. After clone, the second version is still `VERSION_INCOMPLETE` and we will try to repair again and again which cause the first replica can not repair any more and the the partition visible version is blocked. ## What I'm doing: Try to fix the replica which version is smaller first. Signed-off-by: sevev <[email protected]>
wanpengfei-git
pushed a commit
that referenced
this pull request
Sep 23, 2024
…te loop (backport #50561) (#50779) Co-authored-by: zhangqiang <[email protected]>
renzhimin7
pushed a commit
to renzhimin7/starrocks
that referenced
this pull request
Nov 7, 2024
…te loop (StarRocks#50561) ## Why I'm doing: Some `VERSION_INCOMPLETE` replicas may not be able to be scheduled for clone repair, such as the following scenario: 1. The partition visible version is `100` because there are some replica version is still `100` and version `101` publish failed. 2. The ingestion task is continuous and the lastest committed version is `120`. 3. There are two VERSION_INCOMPLETE` replicas, the first replica commit version `101` and `120` failed, so the first replica version is `100`, last failed version is `120`. The second replica commit version `102` and `108` failed, so the second replica version is `101` and the last failed version is `108`. 5. We consider these two replicas are needed to repair because their `last failed version` are both greater than 0 and we will choose the replica which `last failed version` is smaller to repair first. 6. However, we use visible version in clone task because the clone task can only clone the data with visible version. So the second replica version is still `101` and last failed version is `108`. 7. After clone, the second version is still `VERSION_INCOMPLETE` and we will try to repair again and again which cause the first replica can not repair any more and the the partition visible version is blocked. ## What I'm doing: Try to fix the replica which version is smaller first. Signed-off-by: sevev <[email protected]> Signed-off-by: zhiminr.ren <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why I'm doing:
Some
VERSION_INCOMPLETE
replicas may not be able to be scheduled for clone repair, such as the following scenario:100
because there are some replica version is still100
and version101
publish failed.120
.replicas, the first replica commit version
101and
120failed, so the first replica version is
100, last failed version is
120. The second replica commit version
102and
108failed, so the second replica version is
101and the last failed version is
108`.last failed version
are both greater than 0 and we will choose the replica whichlast failed version
is smaller to repair first.101
and last failed version is108
.VERSION_INCOMPLETE
and we will try to repair again and again which cause the first replica can not repair any more and the the partition visible version is blocked.What I'm doing:
Try to fix the replica which version is smaller first.
Fixes #issue
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: