Skip to content

cluster: fix the issue when endpoints are empty in scale-out#1227

Merged
ti-chi-bot merged 15 commits intopingcap:masterfrom
jsvisa:fix/tiflash-pd-endpoints-are-empty
Mar 26, 2021
Merged

cluster: fix the issue when endpoints are empty in scale-out#1227
ti-chi-bot merged 15 commits intopingcap:masterfrom
jsvisa:fix/tiflash-pd-endpoints-are-empty

Conversation

@9547
Copy link
Copy Markdown
Contributor

@9547 9547 commented Mar 18, 2021

What problem does this PR solve?

Fix #1226

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Code changes

  • Has exported function/method change
  • Has exported variable/fields change
  • Has interface methods change
  • Has persistent data change

Side effects

  • Possible performance regression
  • Increased code complexity
  • Breaking backward compatibility

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation

Release notes:

NONE

@ti-chi-bot ti-chi-bot requested review from july2993 and lucklove March 18, 2021 17:54
@ti-chi-bot ti-chi-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 18, 2021
@9547 9547 changed the title cluster: fix the issue when endpoints are empty in cluster: fix the issue when endpoints are empty in scale-out Mar 18, 2021
@9547
Copy link
Copy Markdown
Contributor Author

9547 commented Mar 18, 2021

/cc @lucklove

PTAL

@codecov-io
Copy link
Copy Markdown

codecov-io commented Mar 18, 2021

Codecov Report

Merging #1227 (1882f4f) into master (ede1182) will increase coverage by 12.04%.
The diff coverage is 33.33%.

❗ Current head 1882f4f differs from pull request most recent head a4b8449. Consider uploading reports for the commit a4b8449 to get more accurate results
Impacted file tree graph

@@             Coverage Diff             @@
##           master    #1227       +/-   ##
===========================================
+ Coverage   26.27%   38.31%   +12.04%     
===========================================
  Files         263      224       -39     
  Lines       18684    16297     -2387     
===========================================
+ Hits         4909     6245     +1336     
+ Misses      13022     8926     -4096     
- Partials      753     1126      +373     
Flag Coverage Δ
cluster 38.31% <33.33%> (?)
integrate 38.31% <33.33%> (+21.80%) ⬆️
tiup ?
unittest ?

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

Impacted Files Coverage Δ
pkg/cluster/api/pdapi.go 44.28% <0.00%> (+44.28%) ⬆️
pkg/cluster/ctxt/context.go 89.09% <ø> (+89.09%) ⬆️
pkg/cluster/manager/scale_out.go 0.00% <0.00%> (-11.77%) ⬇️
pkg/cluster/operation/action.go 57.14% <0.00%> (ø)
pkg/cluster/spec/instance.go 63.51% <ø> (+44.59%) ⬆️
pkg/cluster/spec/tiflash.go 52.63% <50.00%> (-0.06%) ⬇️
pkg/repository/store/store.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/repository/utils/hash.go 0.00% <0.00%> (-81.82%) ⬇️
pkg/meta/err.go 0.00% <0.00%> (-81.25%) ⬇️
pkg/telemetry/meta.go 0.00% <0.00%> (-80.00%) ⬇️
... and 241 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ede1182...a4b8449. Read the comment docs.

Comment thread pkg/cluster/operation/action.go Outdated
@9547 9547 force-pushed the fix/tiflash-pd-endpoints-are-empty branch from c61da3a to 7423b66 Compare March 22, 2021 16:17
@9547
Copy link
Copy Markdown
Contributor Author

9547 commented Mar 22, 2021

@AstroProfundis @lucklove PTAL

Comment thread pkg/cluster/spec/tiflash.go Outdated
Comment thread pkg/cluster/spec/tiflash.go Outdated
Comment thread pkg/cluster/operation/action.go Outdated
@9547 9547 force-pushed the fix/tiflash-pd-endpoints-are-empty branch from fbf8ff3 to a4b8449 Compare March 24, 2021 16:16
@lucklove
Copy link
Copy Markdown
Member

/lgtm

@ti-chi-bot
Copy link
Copy Markdown
Member

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • lucklove

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

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

Details

Reviewer can indicate their review by writing /lgtm in a comment.
Reviewer can cancel approval by writing /lgtm cancel in a comment.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Mar 25, 2021
@lucklove
Copy link
Copy Markdown
Member

/merge

@ti-chi-bot
Copy link
Copy Markdown
Member

This pull request has been accepted and is ready to merge.

DetailsCommit hash: a4b8449

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Mar 26, 2021
@ti-chi-bot
Copy link
Copy Markdown
Member

@9547: Your PR was out of date, I have automatically updated it for you.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot ti-chi-bot merged commit 1225c01 into pingcap:master Mar 26, 2021
@9547 9547 deleted the fix/tiflash-pd-endpoints-are-empty branch April 6, 2021 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Denotes a PR that changes 100-499 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

scale-out action doesn't start tiflash success

5 participants