Skip to content
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

*: use independent lock #5587

Merged
merged 7 commits into from
Oct 25, 2022
Merged

*: use independent lock #5587

merged 7 commits into from
Oct 25, 2022

Conversation

rleungx
Copy link
Member

@rleungx rleungx commented Oct 11, 2022

Signed-off-by: Ryan Leung [email protected]

What problem does this PR solve?

Issue Number: Ref #5586.

What is changed and how does it work?

This PR split the basic cluster lock into two and move out some logic from the lock section in the region heartbeat.

Check List

Tests

  • Manual test

Test via 1000K Region/40 Store/1PD

8e18727

Update speed of each category:
  Requests/sec:     41370.8813
  Save-Tree/sec:     2482.2529
  Save-KV/sec:       1654.8353
  Save-Space/sec:    6205.6322
  Save-Flow/sec:    14479.8085
  Skip/sec:         20627.0333

7d128cb

Update speed of each category:
  Requests/sec:     34475.6364
  Save-Tree/sec:     2068.5382
  Save-KV/sec:       1379.0255
  Save-Space/sec:    5171.3455
  Save-Flow/sec:    12066.4727
  Skip/sec:         17189.1455

master:

Update speed of each category:
  Requests/sec:     25145.4940
  Save-Tree/sec:     1508.7296
  Save-KV/sec:       1005.8198
  Save-Space/sec:    3771.8241
  Save-Flow/sec:     8800.9229
  Skip/sec:         12537.2466

Release note

None

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Oct 11, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • bufferflies
  • nolouch

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Oct 11, 2022
@rleungx rleungx requested review from HunDunDM and removed request for disksing October 11, 2022 10:24
@rleungx rleungx marked this pull request as ready for review October 12, 2022 08:41
@ti-chi-bot ti-chi-bot added release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Oct 12, 2022
@codecov
Copy link

codecov bot commented Oct 13, 2022

Codecov Report

Base: 75.73% // Head: 75.62% // Decreases project coverage by -0.10% ⚠️

Coverage data is based on head (8badf14) compared to base (f4fa6f4).
Patch coverage: 90.50% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5587      +/-   ##
==========================================
- Coverage   75.73%   75.62%   -0.11%     
==========================================
  Files         326      326              
  Lines       32372    32386      +14     
==========================================
- Hits        24518    24493      -25     
- Misses       5757     5777      +20     
- Partials     2097     2116      +19     
Flag Coverage Δ
unittests 75.62% <90.50%> (-0.11%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/cluster/cluster.go 82.95% <83.33%> (-0.19%) ⬇️
server/core/basic_cluster.go 90.18% <90.60%> (-1.88%) ⬇️
server/core/region.go 91.86% <100.00%> (+0.01%) ⬆️
server/core/region_tree.go 94.16% <100.00%> (ø)
pkg/errs/errs.go 75.00% <0.00%> (-25.00%) ⬇️
server/tso/local_allocator.go 64.86% <0.00%> (-13.52%) ⬇️
server/region_syncer/server.go 82.96% <0.00%> (-4.40%) ⬇️
server/storage/storage.go 67.30% <0.00%> (-3.85%) ⬇️
server/region_syncer/client.go 84.32% <0.00%> (-3.74%) ⬇️
pkg/etcdutil/etcdutil.go 84.88% <0.00%> (-3.49%) ⬇️
... and 14 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@nolouch
Copy link
Contributor

nolouch commented Oct 20, 2022

PTAL @CabinfeverB

@nolouch nolouch requested review from CabinfeverB and removed request for HunDunDM October 20, 2022 03:55
server/core/region.go Outdated Show resolved Hide resolved
Copy link
Contributor

@bufferflies bufferflies left a comment

Choose a reason for hiding this comment

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

rest LGTM

Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Oct 24, 2022
Copy link
Contributor

@nolouch nolouch left a comment

Choose a reason for hiding this comment

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

lgtm

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Oct 25, 2022
@nolouch
Copy link
Contributor

nolouch commented Oct 25, 2022

/merge

@ti-chi-bot
Copy link
Member

@nolouch: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 29c9e5b

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Oct 25, 2022
@ti-chi-bot ti-chi-bot merged commit 2b51932 into tikv:master Oct 25, 2022
@rleungx rleungx added the needs-cherry-pick-release-6.1 Should cherry pick this PR to release-6.1 branch. label Oct 25, 2022
@rleungx
Copy link
Member Author

rleungx commented Oct 25, 2022

/run-cherry-picker

@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #5635.

ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this pull request Oct 25, 2022
rleungx added a commit to ti-chi-bot/pd that referenced this pull request Nov 22, 2022
rleungx added a commit to ti-chi-bot/pd that referenced this pull request Nov 22, 2022
rleungx added a commit to ti-chi-bot/pd that referenced this pull request Nov 22, 2022
ti-chi-bot added a commit that referenced this pull request Nov 25, 2022
ref #5586, ref #5587

Signed-off-by: Ryan Leung <[email protected]>

Co-authored-by: Ryan Leung <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-cherry-pick-release-6.1 Should cherry pick this PR to release-6.1 branch. release-note-none Denotes a PR that doesn't merit a release note. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants