-
Notifications
You must be signed in to change notification settings - Fork 720
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
operator: check store status for running operators #4223
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Codecov Report
@@ Coverage Diff @@
## master #4223 +/- ##
=======================================
Coverage 75.02% 75.02%
=======================================
Files 263 263
Lines 27307 27317 +10
=======================================
+ Hits 20486 20494 +8
+ Misses 5015 5011 -4
- Partials 1806 1812 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
/run-unit-tests |
1 similar comment
/run-unit-tests |
@@ -165,6 +165,25 @@ func (t *testOperatorControllerSuite) TestFastFailOperator(c *C) { | |||
c.Assert(oc.GetOperator(region.GetID()), IsNil) | |||
} | |||
|
|||
// Issue 3353 | |||
func (t *testOperatorControllerSuite) TestFastFailOperator2(c *C) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about TestFastFailWithUnhealthyStore
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
Signed-off-by: disksing <i@disksing.com>
/merge |
@disksing: 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. |
This pull request has been accepted and is ready to merge. Commit hash: 2c0adbe
|
/run-unit-tests |
1 similar comment
/run-unit-tests |
/run-unit-tests |
/run-unit-tests |
In response to a cherrypick label: new pull request created: #4365. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created: #4366. |
In response to a cherrypick label: new pull request created: #4367. |
In response to a cherrypick label: new pull request created: #4368. |
* operator: check store status for running operators close tikv#3353 Signed-off-by: disksing <i@disksing.com> * add test Signed-off-by: disksing <i@disksing.com> * add tests Signed-off-by: disksing <i@disksing.com> * address comment Signed-off-by: disksing <i@disksing.com>
* operator: check store status for running operators close #3353 Signed-off-by: disksing <i@disksing.com> * add test Signed-off-by: disksing <i@disksing.com> * add tests Signed-off-by: disksing <i@disksing.com> * address comment Signed-off-by: disksing <i@disksing.com> * fix build Signed-off-by: disksing <i@disksing.com> * fix ci (try) Signed-off-by: disksing <i@disksing.com> Co-authored-by: disksing <i@disksing.com>
What problem does this PR solve?
Fix #3353
What is changed and how it works?
TransferLeader
,AddLearner
,AddPeer
, check if the target store is down and cancel the operator if need.OperatorStep
may or may not get blocked by down store, we don't restrict them in the PR.Check List
Tests
Related changes
Release note