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

Fix heterogeneous code cause tidb rolling update bug #3322

Merged
merged 5 commits into from
Sep 25, 2020

Conversation

mikechengwei
Copy link
Contributor

@mikechengwei mikechengwei commented Sep 24, 2020

What problem does this PR solve?

Fix heterogeneous code cause tidb rolling update bug .

What is changed and how does it work?

Non-heterogeneous cluster tidb startup use the old address format.

Check List

Tests

  • Unit test
  • E2E test

Code changes

  • Has Go code change

@codecov-commenter
Copy link

codecov-commenter commented Sep 24, 2020

Codecov Report

Merging #3322 into master will increase coverage by 0.05%.
The diff coverage is 47.44%.

@@            Coverage Diff             @@
##           master    #3322      +/-   ##
==========================================
+ Coverage   41.84%   41.89%   +0.05%     
==========================================
  Files         159      159              
  Lines       16572    16690     +118     
==========================================
+ Hits         6934     6992      +58     
- Misses       8998     9045      +47     
- Partials      640      653      +13     
Flag Coverage Δ
#unittest 41.89% <47.44%> (?)

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

@mikechengwei
Copy link
Contributor Author

/run-all-tests

@@ -77,6 +77,7 @@ exec /tidb-server ${ARGS}
`))

type TidbStartScriptModel struct {
ClusterName string
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not used, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Old logic have this field, i think it is unused. I can remove it.

Copy link
Contributor

@DanielZhangQD DanielZhangQD 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
Contributor

@lichunzhu lichunzhu left a comment

Choose a reason for hiding this comment

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

LGTM

@pingcap pingcap deleted a comment from DanielZhangQD Sep 25, 2020
@DanielZhangQD DanielZhangQD merged commit 268c53a into pingcap:master Sep 25, 2020
ti-srebot pushed a commit to ti-srebot/tidb-operator that referenced this pull request Sep 25, 2020
@ti-srebot
Copy link
Contributor

cherry pick to release-1.1 in PR #3324

DanielZhangQD pushed a commit that referenced this pull request Sep 25, 2020
Signed-off-by: ti-srebot <[email protected]>

Co-authored-by: Mike <[email protected]>
cvvz pushed a commit to cvvz/tidb-operator that referenced this pull request Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants