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

*: rename tidb_back_off_weight #11655

Merged
merged 4 commits into from
Aug 7, 2019
Merged

Conversation

jackysp
Copy link
Member

@jackysp jackysp commented Aug 7, 2019

Signed-off-by: Shuaipeng Yu jackysp@gmail.com

What problem does this PR solve?

The back_off in tidb_back_off_weight is not consistent with the old variabletidb_backoff_lock_fast, which makes the user confused.

What is changed and how it works?

It is a new variable, may not be used widely by users, so change it to tidb_backoff_weight.

Check List

Tests

  • Unit test

Code changes

  • Has exported variable/fields change

Side effects

  • Breaking backward compatibility

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation
  • Need to be included in the release note

Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
@jackysp jackysp added type/enhancement The issue or PR belongs to an enhancement. needs-cherry-pick-3.0 labels Aug 7, 2019
@jackysp jackysp requested review from coocood and lysu August 7, 2019 05:29
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
@codecov
Copy link

codecov bot commented Aug 7, 2019

Codecov Report

Merging #11655 into master will decrease coverage by 0.1525%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             master     #11655        +/-   ##
================================================
- Coverage   81.4101%   81.2576%   -0.1526%     
================================================
  Files           426        426                
  Lines         92513      92075       -438     
================================================
- Hits          75315      74818       -497     
- Misses        11826      11876        +50     
- Partials       5372       5381         +9

@coocood
Copy link
Member

coocood commented Aug 7, 2019

LGTM

Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
@jackysp jackysp requested a review from zimulala August 7, 2019 05:58
@@ -853,6 +858,10 @@ func upgradeToVer34(s Session) {
doReentrantDDL(s, CreateOptRuleBlacklist)
}

func upgradeToVer35(s Session) {
mustExecute(s, "UPDATE HIGH_PRIORITY mysql.GLOBAL_VARIABLES SET VARIABLE_NAME='tidb_backoff_weight' WHERE VARIABLE_NAME='tidb_back_off_weight'")
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to update other variables? If we need to, I think we'd better do it in the same PR. Then we can reduce versions.

Copy link
Member Author

Choose a reason for hiding this comment

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

No other name needs to be changed.

Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
@jackysp
Copy link
Member Author

jackysp commented Aug 7, 2019

/run-all-tests

Copy link
Contributor

@zimulala zimulala 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 jackysp added status/LGT2 Indicates that a PR has LGTM 2. status/can-merge Indicates a PR has been approved by a committer. labels Aug 7, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Aug 7, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Aug 7, 2019

@jackysp merge failed.

@jackysp
Copy link
Member Author

jackysp commented Aug 7, 2019

/run-unit-test

@jackysp jackysp merged commit 028f63c into pingcap:master Aug 7, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Aug 7, 2019

cherry pick to release-3.0 failed

jackysp added a commit to jackysp/tidb that referenced this pull request Aug 7, 2019
jackysp added a commit that referenced this pull request Aug 8, 2019
@jackysp jackysp deleted the rename_backoff_var branch February 27, 2020 13:33
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. status/LGT2 Indicates that a PR has LGTM 2. 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