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

scheduler: filter unhealthy store in summaryStoresLoad (#2737) #2805

Merged
merged 3 commits into from
Aug 21, 2020

Conversation

ti-srebot
Copy link
Contributor

cherry-pick #2737 to release-4.0


Signed-off-by: lhy1024 [email protected]

What problem does this PR solve?

Before this PR, we have not filtered unhealthy store in summaryStoresLoad, it will make exp to be inaccurate

What is changed and how it works?

Fix it

Check List

Tests

  • Unit test

Release note

  • Fix the issue that no filtered unhealthy store in summaryStoresLoad

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Aug 20, 2020
@codecov
Copy link

codecov bot commented Aug 20, 2020

Codecov Report

Merging #2805 into release-4.0 will increase coverage by 0.41%.
The diff coverage is 79.62%.

Impacted file tree graph

@@               Coverage Diff               @@
##           release-4.0    #2805      +/-   ##
===============================================
+ Coverage        77.16%   77.58%   +0.41%     
===============================================
  Files              204      206       +2     
  Lines            21940    22676     +736     
===============================================
+ Hits             16931    17593     +662     
- Misses            3724     3773      +49     
- Partials          1285     1310      +25     
Impacted Files Coverage Δ
client/base_client.go 90.60% <ø> (ø)
client/metrics.go 100.00% <ø> (ø)
pkg/apiutil/apiutil.go 67.34% <ø> (ø)
pkg/apiutil/serverapi/middleware.go 73.07% <ø> (ø)
pkg/cache/cache.go 0.00% <ø> (ø)
pkg/cache/fifo.go 100.00% <ø> (ø)
pkg/cache/lru.go 80.35% <ø> (ø)
pkg/cache/two_queue.go 66.66% <ø> (ø)
pkg/codec/codec.go 78.57% <ø> (ø)
pkg/component/manager.go 81.01% <ø> (ø)
... and 201 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 0ef1e1c...e46d742. Read the comment docs.

@lhy1024
Copy link
Contributor

lhy1024 commented Aug 20, 2020

/run-all-tests

@lhy1024 lhy1024 force-pushed the release-4.0-3a4cae5a3370 branch from 96722fd to 2c48fe5 Compare August 20, 2020 17:30
@lhy1024
Copy link
Contributor

lhy1024 commented Aug 21, 2020

/run-all-tests

@nolouch
Copy link
Contributor

nolouch commented Aug 21, 2020

LGTM

@ti-srebot ti-srebot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Aug 21, 2020
@lhy1024
Copy link
Contributor

lhy1024 commented Aug 21, 2020

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Aug 21, 2020
@ti-srebot
Copy link
Contributor Author

/run-all-tests

@ti-srebot
Copy link
Contributor Author

@ti-srebot merge failed.

@lhy1024
Copy link
Contributor

lhy1024 commented Aug 21, 2020

/merge

@ti-srebot
Copy link
Contributor Author

/run-all-tests

@ti-srebot
Copy link
Contributor Author

@ti-srebot merge failed.

@lhy1024
Copy link
Contributor

lhy1024 commented Aug 21, 2020

/merge

@ti-srebot
Copy link
Contributor Author

/run-all-tests

@lhy1024
Copy link
Contributor

lhy1024 commented Aug 21, 2020

/merge

1 similar comment
@lhy1024
Copy link
Contributor

lhy1024 commented Aug 21, 2020

/merge

@ti-srebot
Copy link
Contributor Author

@ti-srebot merge failed.

@ti-srebot
Copy link
Contributor Author

/run-all-tests

@ti-srebot
Copy link
Contributor Author

@ti-srebot merge failed.

@ti-srebot
Copy link
Contributor Author

/run-all-tests

@ti-srebot
Copy link
Contributor Author

@ti-srebot merge failed.

@lhy1024
Copy link
Contributor

lhy1024 commented Aug 21, 2020

/run-all-tests

@lhy1024 lhy1024 merged commit 0d566cb into tikv:release-4.0 Aug 21, 2020
@lhy1024 lhy1024 deleted the release-4.0-3a4cae5a3370 branch August 21, 2020 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/scheduler Scheduler logic. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants