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

Util: Fix global tracker mutex contention (#16298) #17234

Merged
merged 3 commits into from
May 15, 2020

Conversation

sre-bot
Copy link
Contributor

@sre-bot sre-bot commented May 15, 2020

cherry-pick #16298 to release-4.0


What problem does this PR solve?

For the Global Tracker, the Attaching and Detaching would cause the mutex contention which would decrease the qps.

Issue Number: close #16258

Problem Summary:

What is changed and how it works?

How it Works:
Import the Global function in the Tracker. It remove the logic to maintain the children to avoid mutex contention

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test

Release note

  • None

Signed-off-by: sre-bot <sre-bot@pingcap.com>
@sre-bot sre-bot requested a review from a team as a code owner May 15, 2020 06:33
@sre-bot
Copy link
Contributor Author

sre-bot commented May 15, 2020

/run-all-tests

@ghost ghost requested a review from XuHuaiyu May 15, 2020 06:33
@sre-bot sre-bot requested review from qw4990 and SunRunAway May 15, 2020 06:33
@ghost ghost removed their request for review May 15, 2020 06:33
@sre-bot sre-bot added this to the 4.0.0-rc.2 milestone May 15, 2020
@sre-bot
Copy link
Contributor Author

sre-bot commented May 15, 2020

@jackysp
Copy link
Member

jackysp commented May 15, 2020

Please resolve the conflicts, @Yisaer .

Song Gao and others added 2 commits May 15, 2020 14:47
@sre-bot
Copy link
Contributor Author

sre-bot commented May 15, 2020

@zhouqiang-cl
Copy link
Contributor

/rebuild

@Yisaer
Copy link
Contributor

Yisaer commented May 15, 2020

Conflict fixed, but I can't edit the release-note.

@Yisaer
Copy link
Contributor

Yisaer commented May 15, 2020

/run-unit-test

@coocood
Copy link
Member

coocood commented May 15, 2020

LGTM

@Yisaer
Copy link
Contributor

Yisaer commented May 15, 2020

/run-check_dev

@Yisaer
Copy link
Contributor

Yisaer commented May 15, 2020

/run-unit-test

@zz-jason
Copy link
Member

LGTM

Copy link
Member

@tennix tennix left a comment

Choose a reason for hiding this comment

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

LGTM

@Yisaer
Copy link
Contributor

Yisaer commented May 15, 2020

/run-check_dev

@Yisaer

This comment has been minimized.

1 similar comment
@Yisaer
Copy link
Contributor

Yisaer commented May 15, 2020

/run-unit-test

@jebter
Copy link

jebter commented May 15, 2020

/approve

@sre-bot
Copy link
Contributor Author

sre-bot commented May 15, 2020

Approve failed.

@zhouqiang-cl
Copy link
Contributor

/approve

@sre-bot
Copy link
Contributor Author

sre-bot commented May 15, 2020

Approve failed.

Copy link
Contributor

@zhouqiang-cl zhouqiang-cl left a comment

Choose a reason for hiding this comment

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

LGTM

@jebter
Copy link

jebter commented May 15, 2020

/merge

@sre-bot sre-bot added the status/can-merge Indicates a PR has been approved by a committer. label May 15, 2020
@sre-bot
Copy link
Contributor Author

sre-bot commented May 15, 2020

/run-all-tests

@Yisaer
Copy link
Contributor

Yisaer commented May 15, 2020

/run-unit-test

@Yisaer

This comment has been minimized.

@sre-bot
Copy link
Contributor Author

sre-bot commented May 15, 2020

@sre-bot merge failed.

@Yisaer

This comment has been minimized.

@Yisaer

This comment has been minimized.

2 similar comments
@Yisaer
Copy link
Contributor

Yisaer commented May 15, 2020

/run-unit-test

@Yisaer
Copy link
Contributor

Yisaer commented May 15, 2020

/run-unit-test

@zhouqiang-cl zhouqiang-cl merged commit dfbb1ff into pingcap:release-4.0 May 15, 2020
@tiancaiamao tiancaiamao deleted the release-4.0-3edfffa84bc7 branch November 5, 2020 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/can-merge Indicates a PR has been approved by a committer. type/4.0-cherry-pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants