-
Notifications
You must be signed in to change notification settings - Fork 6k
pkg/domain: remove duplicate EtcdClient() method #64328
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
base: master
Are you sure you want to change the base?
Conversation
|
Hi @copilot. Thanks for your PR. I'm waiting for a pingcap 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. 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-sigs/prow repository. |
|
Hi @copilot. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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-sigs/prow repository. |
Co-authored-by: lance6716 <[email protected]>
|
/ok-to-test |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #64328 +/- ##
================================================
+ Coverage 72.7218% 74.9262% +2.2044%
================================================
Files 1861 1884 +23
Lines 504726 512811 +8085
================================================
+ Hits 367046 384230 +17184
+ Misses 115367 104898 -10469
- Partials 22313 23683 +1370
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
/retest |
|
@copilot please keep html comment elements in pull request description according to the pull request template!. |
Updated the PR description to preserve all HTML comment elements from the template. |
|
/cc @D3Hunter |
|
/cc @yudongusa |
|
@lance6716: GitHub didn't allow me to request PR reviews from the following users: yudongusa. Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
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-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: D3Hunter, zimulala The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What problem does this PR solve?
Issue Number: close #64313
Problem Summary:
(*Domain).EtcdClient()and(*Domain).GetEtcdClient()are duplicates serving identical purposes.What changed and how does it work?
Removed
EtcdClient()method and migrated all call sites toGetEtcdClient():pkg/domain/domain.go: Removed duplicateEtcdClient()method definitionpkg/ddl/schema_test.go,pkg/session/sync_upgrade.go,pkg/session/bootstrap_test.go, andtests/realtikvtest/brietest/pitr_test.goGetEtcdClient()chosen as standard (14 existing usages vs 4 forEtcdClient()).Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.