Add force option to "pd-ctl store delete" command#8879
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Welcome @shunki-fujita! |
|
Hi @shunki-fujita. Thanks for your PR. I'm waiting for a tikv member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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 kubernetes-sigs/prow repository. |
6eed30e to
75840fb
Compare
Signed-off-by: shunki-fujita <shunki-fujita@cybozu.co.jp>
75840fb to
68740fd
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8879 +/- ##
==========================================
- Coverage 76.14% 76.13% -0.01%
==========================================
Files 458 459 +1
Lines 70208 70247 +39
==========================================
+ Hits 53462 53486 +24
- Misses 13389 13396 +7
- Partials 3357 3365 +8
Flags with carried forward coverage won't be shown. Click here to find out more. |
d337f34 to
c5b8c70
Compare
Signed-off-by: shunki-fujita <shunki-fujita@cybozu.co.jp>
c5b8c70 to
daac255
Compare
|
@shunki-fujita Thanks for your PR. But we have encountered many issues that misuse this API, so we prevent doing that anymore, see #4039. |
|
@rleungx The Even so, is it better not to implement this option? (By the way, since it is not directly set to |
The reason why we use |
I encountered exactly that scenario, so I created this PR. |
|
@shunki-fujita Here is an example: If store 5 cannot be tombstoned, it might have some other issues, which we need to fix instead of directly setting it to tombstoned. |
|
@rleungx
I see, |
What problem does this PR solve?
Issue Number: Close #8878
What is changed and how does it work?
Add
--forceoption topd-ctl store deletecommand.Set status to Tombstone directly.
https://download.pingcap.com/pd-api-doc.html#store__storeid__delete
Check List
Tests
Code changes
Side effects
Related changes
pingcap/docs/pingcap/docs-cn:pingcap/tiup:Release note