-
Notifications
You must be signed in to change notification settings - Fork 727
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
api: add role_name and is_learner to the returned peer info #3643
Conversation
Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.com>
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
Codecov Report
@@ Coverage Diff @@
## master #3643 +/- ##
==========================================
- Coverage 74.97% 74.67% -0.30%
==========================================
Files 244 245 +1
Lines 24403 24162 -241
==========================================
- Hits 18296 18044 -252
- Misses 4489 4504 +15
+ Partials 1618 1614 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
[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 writing |
/merge |
@HunDunDM: 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: ffa896c
|
In response to a cherrypick label: new pull request created: #3743. |
…3743) * api: add role_name and is_learner to the returned peer info Signed-off-by: HunDunDM <hundundm@gmail.com> * add comment Signed-off-by: HunDunDM <hundundm@gmail.com> * add unit test Signed-off-by: HunDunDM <hundundm@gmail.com> * fix test Signed-off-by: HunDunDM <hundundm@gmail.com> * fix lint Signed-off-by: HunDunDM <hundundm@gmail.com> * fix test Signed-off-by: HunDunDM <hundundm@gmail.com> * rename struct Signed-off-by: HunDunDM <hundundm@gmail.com> * add comment Signed-off-by: HunDunDM <hundundm@gmail.com> * adjust test Signed-off-by: HunDunDM <hundundm@gmail.com> * delete unnecessary pointer Signed-off-by: HunDunDM <hundundm@gmail.com> * fix enum name Signed-off-by: HunDunDM <hundundm@gmail.com> * fix test Signed-off-by: HunDunDM <hundundm@gmail.com> Co-authored-by: HunDunDM <hundundm@gmail.com>
* api: add role_name and is_learner to the returned peer info Signed-off-by: HunDunDM <hundundm@gmail.com> * add comment Signed-off-by: HunDunDM <hundundm@gmail.com> * add unit test Signed-off-by: HunDunDM <hundundm@gmail.com> * fix test Signed-off-by: HunDunDM <hundundm@gmail.com> * fix lint Signed-off-by: HunDunDM <hundundm@gmail.com> * fix test Signed-off-by: HunDunDM <hundundm@gmail.com> * rename struct Signed-off-by: HunDunDM <hundundm@gmail.com> * add comment Signed-off-by: HunDunDM <hundundm@gmail.com> * adjust test Signed-off-by: HunDunDM <hundundm@gmail.com> * delete unnecessary pointer Signed-off-by: HunDunDM <hundundm@gmail.com> * fix enum name Signed-off-by: HunDunDM <hundundm@gmail.com> * fix test Signed-off-by: HunDunDM <hundundm@gmail.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
* api: add role_name and is_learner to the returned peer info Signed-off-by: HunDunDM <hundundm@gmail.com> * add comment Signed-off-by: HunDunDM <hundundm@gmail.com> * add unit test Signed-off-by: HunDunDM <hundundm@gmail.com> * fix test Signed-off-by: HunDunDM <hundundm@gmail.com> * fix lint Signed-off-by: HunDunDM <hundundm@gmail.com> * fix test Signed-off-by: HunDunDM <hundundm@gmail.com> * rename struct Signed-off-by: HunDunDM <hundundm@gmail.com> * add comment Signed-off-by: HunDunDM <hundundm@gmail.com> * adjust test Signed-off-by: HunDunDM <hundundm@gmail.com> * delete unnecessary pointer Signed-off-by: HunDunDM <hundundm@gmail.com> * fix enum name Signed-off-by: HunDunDM <hundundm@gmail.com> * fix test Signed-off-by: HunDunDM <hundundm@gmail.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Signed-off-by: HunDunDM hundundm@gmail.com
What problem does this PR solve?
close #3372 tidb#24293
What is changed and how it works?
role_name
andis_learner
to the returned peer infoCheck List
Tests
Before
After
Side effects
/regions
returns a large number of regionsBefore
After
Related changes
Release note
is_learner
field of the Region Peer in TiDB is incorrect.