Skip to content

Conversation

@yujun777
Copy link
Contributor

@yujun777 yujun777 commented Oct 17, 2023

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...

@yujun777 yujun777 marked this pull request as draft October 17, 2023 16:28
Copy link
Contributor

@github-actions github-actions bot left a 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) {
Copy link
Contributor

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]

Suggested change
TEST(DebugPointsTest, AddTest) {
TEST(DebugPointsTest /*unused*/, AddTest /*unused*/) {

@yujun777 yujun777 changed the title [WIP](tablet clone) fix furthur repair [improvement](tablet clone) furthur repair replicas should be check even if they are not fallbehind Oct 18, 2023
@yujun777 yujun777 marked this pull request as ready for review October 18, 2023 09:08
@yujun777
Copy link
Contributor Author

run buildall

@yujun777 yujun777 changed the title [improvement](tablet clone) furthur repair replicas should be check even if they are not fallbehind [improvement](tablet clone) furthur repair replicas should be check even if they are versions catchup Oct 18, 2023
@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 37.01% (8281/22373)
Line Coverage: 29.08% (66399/228355)
Region Coverage: 27.72% (34453/124267)
Branch Coverage: 24.35% (17509/71916)
Coverage Report: http://coverage.selectdb-in.cc/coverage/4d7add81b13d342b2bd5c8e93a32fe55be2af00a_4d7add81b13d342b2bd5c8e93a32fe55be2af00a/report/index.html

@doris-robot
Copy link

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.89 seconds
stream load tsv: 560 seconds loaded 74807831229 Bytes, about 127 MB/s
stream load json: 21 seconds loaded 2358488459 Bytes, about 107 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select: 28.8 seconds inserted 10000000 Rows, about 347K ops/s
storage size: 17162086210 Bytes

Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Oct 20, 2023
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

Copy link
Contributor

@deardeng deardeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dataroaring dataroaring merged commit 2679fa4 into apache:master Oct 26, 2023
yujun777 added a commit to yujun777/doris that referenced this pull request Oct 27, 2023
xiaokang pushed a commit that referenced this pull request Oct 28, 2023
dutyu pushed a commit to dutyu/doris that referenced this pull request Oct 28, 2023
gnehil pushed a commit to gnehil/doris that referenced this pull request Dec 4, 2023
@xiaokang xiaokang mentioned this pull request Dec 4, 2023
XuJianxu pushed a commit to XuJianxu/doris that referenced this pull request Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/2.0.3-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants