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

client: rename follower handle var #7577

Closed
wants to merge 2 commits into from

Conversation

CabinfeverB
Copy link
Member

@CabinfeverB CabinfeverB commented Dec 19, 2023

What problem does this PR solve?

Issue Number: ref #7431

What is changed and how does it work?

We need to clearly define the range of APIs that a follower handle can handle

Check List

Tests

  • Unit test

Code changes

Side effects

  • Possible performance regression
  • Increased code complexity
  • Breaking backward compatibility

Related changes

Release note

None.

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Copy link
Contributor

ti-chi-bot bot commented Dec 19, 2023

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • lhy1024

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 bot added release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 19, 2023
@wuhuizuo
Copy link
Contributor

/test pull-integration-copr-test

Copy link
Contributor

ti-chi-bot bot commented Dec 19, 2023

@CabinfeverB: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-integration-copr-test 973b776 link false /test pull-integration-copr-test

Full PR test history. Your PR dashboard.

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 kubernetes/test-infra repository. I understand the commands that are listed here.

@@ -707,12 +707,12 @@ func (c *client) UpdateOption(option DynamicOption, value interface{}) error {
return errors.New("[pd] invalid value type for EnableTSOFollowerProxy option, it should be bool")
}
c.option.setEnableTSOFollowerProxy(enable)
case EnableFollowerHandle:
case EnableFollowerHandleRegionRequest:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we have more and more requests, will the option become bloated in the future?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'll be more, but I don't think it'll be bloated. If there are more options, we can provide a function to turn all options on or off, but we must be able to control them separately

Copy link

codecov bot commented Dec 22, 2023

Codecov Report

Merging #7577 (55c3583) into master (74ef91d) will increase coverage by 0.00%.
Report is 4 commits behind head on master.
The diff coverage is 57.14%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7577   +/-   ##
=======================================
  Coverage   74.79%   74.79%           
=======================================
  Files         459      459           
  Lines       50541    50541           
=======================================
+ Hits        37802    37803    +1     
+ Misses       9391     9387    -4     
- Partials     3348     3351    +3     
Flag Coverage Δ
unittests 74.79% <57.14%> (+<0.01%) ⬆️

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

@ti-chi-bot ti-chi-bot bot added the status/LGT1 Indicates that a PR has LGTM 1. label Dec 25, 2023
@CabinfeverB
Copy link
Member Author

After discussion, because there is only region api at present, and the variables of pd client are generally not directly exposed to users, we can not change it for the time being

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants