Skip to content

metrics: fix the residual label (#4824) #4831

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

Merged

Conversation

ti-chi-bot
Copy link
Member

This is an automated cherry-pick of #4824

Signed-off-by: Ryan Leung [email protected]

What problem does this PR solve?

Issue Number: Close #4825.

What is changed and how it works?

Before collecting the metrics, reset the placementStatusGauge

Check List

Tests

  • Manual test (the detailed steps can be found in the above issue)

Release note

Fix the issue that the label distribution has residual labels

Signed-off-by: Ryan Leung <[email protected]>
@ti-chi-bot
Copy link
Member Author

ti-chi-bot commented Apr 21, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • lhy1024
  • nolouch

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.

@ti-chi-bot ti-chi-bot added do-not-merge/cherry-pick-not-approved release-note Denotes a PR that will be considered when it comes time to generate release notes. type/cherry-pick-for-release-5.3 The PR belongs to release-5.3 cherry pick. labels Apr 21, 2022
@ti-chi-bot ti-chi-bot requested review from lhy1024 and rleungx April 21, 2022 05:55
@codecov
Copy link

codecov bot commented Apr 21, 2022

Codecov Report

Merging #4831 (7711383) into release-5.3 (b99630d) will decrease coverage by 0.14%.
The diff coverage is 100.00%.

@@               Coverage Diff               @@
##           release-5.3    #4831      +/-   ##
===============================================
- Coverage        74.91%   74.77%   -0.15%     
===============================================
  Files              263      263              
  Lines            27329    27330       +1     
===============================================
- Hits             20473    20435      -38     
- Misses            5040     5066      +26     
- Partials          1816     1829      +13     
Flag Coverage Δ
unittests 74.77% <100.00%> (-0.15%) ⬇️

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

Impacted Files Coverage Δ
server/statistics/store_collection.go 93.70% <100.00%> (+0.04%) ⬆️
server/kv/etcd_kv.go 69.56% <0.00%> (-10.15%) ⬇️
server/tso/tso.go 59.09% <0.00%> (-9.66%) ⬇️
server/tso/local_allocator.go 64.86% <0.00%> (-6.76%) ⬇️
server/tso/allocator_manager.go 62.83% <0.00%> (-3.34%) ⬇️
server/election/leadership.go 75.25% <0.00%> (-2.07%) ⬇️
server/schedule/operator_controller.go 83.02% <0.00%> (-2.05%) ⬇️
server/member/member.go 63.10% <0.00%> (-1.61%) ⬇️
server/tso/global_allocator.go 60.84% <0.00%> (-1.06%) ⬇️
server/region_syncer/client.go 78.90% <0.00%> (-0.79%) ⬇️
... and 12 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 b99630d...7711383. Read the comment docs.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Apr 25, 2022
@VelocityLight VelocityLight added cherry-pick-approved Cherry pick PR approved by release team. and removed do-not-merge/cherry-pick-not-approved labels May 27, 2022
@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels May 27, 2022
@nolouch
Copy link
Contributor

nolouch commented May 27, 2022

/merge

@ti-chi-bot
Copy link
Member Author

@nolouch: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

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
Copy link
Member Author

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

Commit hash: 7711383

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label May 27, 2022
@ti-chi-bot ti-chi-bot merged commit b73b12d into tikv:release-5.3 May 27, 2022
@purelind purelind added this to the v5.3.2 milestone Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-approved Cherry pick PR approved by release team. release-note Denotes a PR that will be considered when it comes time to generate release notes. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/cherry-pick-for-release-5.3 The PR belongs to release-5.3 cherry pick.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants