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

cluster: fix display exception #1889

Merged

Conversation

srstack
Copy link
Collaborator

@srstack srstack commented May 19, 2022

What problem does this PR solve?

just add lock (

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

@srstack srstack added the type/bug-fix Categorizes PR as a bug-fix label May 19, 2022
@ti-chi-bot
Copy link
Member

ti-chi-bot commented May 19, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • AstroProfundis

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.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@srstack srstack self-assigned this May 19, 2022
@ti-chi-bot ti-chi-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 19, 2022
@codecov-commenter
Copy link

codecov-commenter commented May 19, 2022

Codecov Report

Merging #1889 (ddee7dd) into master (bdac542) will decrease coverage by 2.49%.
The diff coverage is 62.50%.

❗ Current head ddee7dd differs from pull request most recent head 09f09ad. Consider uploading reports for the commit 09f09ad to get more accurate results

@@            Coverage Diff             @@
##           master    #1889      +/-   ##
==========================================
- Coverage   52.86%   50.36%   -2.49%     
==========================================
  Files         307      307              
  Lines       35153    35161       +8     
==========================================
- Hits        18581    17708     -873     
- Misses      14387    15335     +948     
+ Partials     2185     2118      -67     
Flag Coverage Δ
cluster 36.58% <62.50%> (-4.65%) ⬇️
unittest 21.20% <0.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
pkg/cluster/manager/display.go 45.80% <62.50%> (-3.66%) ⬇️
pkg/cluster/task/update_meta.go 0.00% <0.00%> (-84.95%) ⬇️
pkg/cluster/template/config/ngmonitoring.go 0.00% <0.00%> (-76.47%) ⬇️
pkg/cluster/task/action.go 0.00% <0.00%> (-60.98%) ⬇️
components/cluster/command/scale_out.go 26.98% <0.00%> (-57.14%) ⬇️
pkg/cluster/operation/scale_in.go 0.00% <0.00%> (-55.13%) ⬇️
components/cluster/command/scale_in.go 36.67% <0.00%> (-53.33%) ⬇️
components/cluster/command/prune.go 43.75% <0.00%> (-37.50%) ⬇️
pkg/cluster/api/binlog.go 5.76% <0.00%> (-32.98%) ⬇️
pkg/cluster/manager/destroy.go 24.39% <0.00%> (-30.89%) ⬇️
... and 29 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 bdac542...09f09ad. Read the comment docs.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label May 19, 2022
@AstroProfundis AstroProfundis added this to the v1.9.6 milestone May 19, 2022
@AstroProfundis
Copy link
Contributor

/merge

@ti-chi-bot
Copy link
Member

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

Commit hash: 09f09ad

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label May 19, 2022
@ti-chi-bot ti-chi-bot merged commit 7ad779c into pingcap:master May 19, 2022
AstroProfundis pushed a commit that referenced this pull request May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S Denotes a PR that changes 10-29 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. type/bug-fix Categorizes PR as a bug-fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants