-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improvement](tablet clone) furthur repair replicas should be check even if they are versions catchup #25551
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
| EXPECT_EQ(567, DebugPoints::instance()->get_debug_param_or_default("dbug6", 0)); | ||
| } | ||
|
|
||
| TEST(DebugPointsTest, AddTest) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: all parameters should be named in a function [readability-named-parameter]
| TEST(DebugPointsTest, AddTest) { | |
| TEST(DebugPointsTest /*unused*/, AddTest /*unused*/) { |
|
run buildall |
|
TeamCity be ut coverage result: |
|
(From new machine)TeamCity pipeline, clickbench performance test result: |
dataroaring
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
deardeng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ven if they are versions catchup (apache#25551)
…ven if they are versions catchup (apache#25551)
…ven if they are versions catchup (apache#25551) (apache#26047)
…ven if they are versions catchup (apache#25551)
Proposed changes
If there are loading txns, PR #24845 will try to furthur repair a balance tablet even if their versions are catchup.
Then in scheduler's NEED_FURTHER_REPAIR handler, if no replicas are version fallbehind, the sched ctx will convert to REPLICA_MISSING, then add missing replicas will fail because they don't really miss replicas.
Improvement: for NEED_FURTHER_REPAIR handler, if all the replicas are version catchup, then try to check the txns before further repair txn has finished, if it finished, then mark the replica as further repair finish.
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...