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

session: fix wrong etcd mutex key #56371

Merged
merged 3 commits into from
Sep 29, 2024
Merged

Conversation

wjhuang2016
Copy link
Member

@wjhuang2016 wjhuang2016 commented Sep 27, 2024

What problem does this PR solve?

Issue Number: close #56375

Problem Summary:
Used the wrong mutex key.

What changed and how does it work?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
    Start a v8.3.0 tidb cluster and upgrade.
  • No need to test
    • I checked and no code files have been changed.

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

Signed-off-by: wjhuang2016 <[email protected]>
@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-linked-issue do-not-merge/needs-tests-checked release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 27, 2024
Copy link

codecov bot commented Sep 27, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 75.5860%. Comparing base (b520f61) to head (fb02faa).
Report is 16 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #56371        +/-   ##
================================================
+ Coverage   73.3867%   75.5860%   +2.1992%     
================================================
  Files          1620       1623         +3     
  Lines        447041     450083      +3042     
================================================
+ Hits         328069     340200     +12131     
+ Misses        98877      89376      -9501     
- Partials      20095      20507       +412     
Flag Coverage Δ
integration 49.1703% <0.0000%> (?)
unit 72.7064% <50.0000%> (+0.2282%) ⬆️

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

Components Coverage Δ
dumpling 52.9478% <ø> (ø)
parser ∅ <ø> (∅)
br 52.4263% <ø> (+6.8970%) ⬆️

Signed-off-by: wjhuang2016 <[email protected]>
pkg/session/bootstrap.go Outdated Show resolved Hide resolved
@wjhuang2016 wjhuang2016 changed the title *: for debug session: fix wong etcd mutex key Sep 27, 2024
@wjhuang2016 wjhuang2016 changed the title session: fix wong etcd mutex key session: fix wrong etcd mutex key Sep 27, 2024
@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Sep 29, 2024
@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Sep 29, 2024
Copy link

ti-chi-bot bot commented Sep 29, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-09-29 03:20:57.019175461 +0000 UTC m=+152212.439388472: ☑️ agreed by lance6716.
  • 2024-09-29 03:27:19.132255971 +0000 UTC m=+152594.552468968: ☑️ agreed by tangenta.

@wjhuang2016
Copy link
Member Author

/hold

@ti-chi-bot ti-chi-bot bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 29, 2024
Copy link

@yudongusa yudongusa left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

ti-chi-bot bot commented Sep 29, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lance6716, tangenta, yudongusa

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added the approved label Sep 29, 2024
@wjhuang2016
Copy link
Member Author

wjhuang2016 commented Sep 29, 2024

/unhold

@wjhuang2016 wjhuang2016 removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 29, 2024
@wjhuang2016
Copy link
Member Author

/retest

1 similar comment
@wuhuizuo
Copy link
Contributor

/retest

@ti-chi-bot ti-chi-bot bot merged commit 8bacf9c into pingcap:master Sep 29, 2024
23 checks passed
@wjhuang2016 wjhuang2016 added the needs-cherry-pick-release-8.4 Should cherry pick this PR to release-8.4 branch. label Sep 29, 2024
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: cannot checkout release-8.4: error checking out release-8.4: exit status 1. output: error: pathspec 'release-8.4' did not match any file(s) known to git

@wjhuang2016 wjhuang2016 removed the needs-cherry-pick-release-8.4 Should cherry pick this PR to release-8.4 branch. label Sep 29, 2024
EricZequan pushed a commit to EricZequan/tidb that referenced this pull request Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

upgrade tidb may block
6 participants