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

*: do not start slow-log timer before parsing #13846

Merged
merged 11 commits into from
Dec 4, 2019

Conversation

jackysp
Copy link
Member

@jackysp jackysp commented Dec 2, 2019

What problem does this PR solve?

Starting slow-log timer making most of the cost time of multi-query greater than slow-log-threshold, which prints too many useless logs.

What is changed and how it works?

Do not start slow-log timer before parsing.

Check List

Tests

  • Unit test

Code changes

  • Has exported function/method change

Related changes

  • Need to cherry-pick to the release branch

Signed-off-by: Shuaipeng Yu <[email protected]>
Signed-off-by: Shuaipeng Yu <[email protected]>
@jackysp jackysp added the type/enhancement The issue or PR belongs to an enhancement. label Dec 2, 2019
@jackysp jackysp requested review from lysu and crazycs520 and removed request for lysu December 2, 2019 06:42
Signed-off-by: Shuaipeng Yu <[email protected]>
@codecov
Copy link

codecov bot commented Dec 2, 2019

Codecov Report

Merging #13846 into master will increase coverage by 0.4739%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             master     #13846        +/-   ##
================================================
+ Coverage   80.3256%   80.7995%   +0.4739%     
================================================
  Files           479        479                
  Lines        119211     121992      +2781     
================================================
+ Hits          95757      98569      +2812     
- Misses        15933      15954        +21     
+ Partials       7521       7469        -52

Signed-off-by: Shuaipeng Yu <[email protected]>
@jackysp jackysp requested a review from coocood December 2, 2019 08:07
@jackysp jackysp changed the title *: do not start slow-log timer before parsing and add a log for multi-query *: do not start slow-log timer before parsing Dec 2, 2019
Signed-off-by: Shuaipeng Yu <[email protected]>
@jackysp
Copy link
Member Author

jackysp commented Dec 2, 2019

PTAL @coocood

Signed-off-by: Shuaipeng Yu <[email protected]>
@coocood
Copy link
Member

coocood commented Dec 2, 2019

LGTM

@jackysp
Copy link
Member Author

jackysp commented Dec 4, 2019

PTAL @crazycs520

Copy link
Contributor

@crazycs520 crazycs520 left a comment

Choose a reason for hiding this comment

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

LGTM

@jackysp
Copy link
Member Author

jackysp commented Dec 4, 2019

/merge

@sre-bot sre-bot added the status/can-merge Indicates a PR has been approved by a committer. label Dec 4, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Dec 4, 2019

/run-all-tests

@sre-bot sre-bot merged commit 5c4a9ee into pingcap:master Dec 4, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Dec 4, 2019

cherry pick to release-3.0 failed

jackysp added a commit to jackysp/tidb that referenced this pull request Dec 4, 2019
 Conflicts:
	config/config_test.go
	session/session.go
XiaTianliang pushed a commit to XiaTianliang/tidb that referenced this pull request Dec 21, 2019
@jackysp jackysp deleted the multi-query branch February 27, 2020 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/can-merge Indicates a PR has been approved by a committer. type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants