pkg/domain: remove duplicate EtcdClient() method#64328
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. 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. |
|
Hi @Copilot. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with 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. |
Co-authored-by: lance6716 <1689766+lance6716@users.noreply.github.com>
|
/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% 75.9426% +3.2208%
================================================
Files 1861 1889 +28
Lines 504726 525627 +20901
================================================
+ Hits 367046 399175 +32129
+ Misses 115367 103056 -12311
- Partials 22313 23396 +1083
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. DetailsIn 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. |
yudongusa
left a comment
There was a problem hiding this comment.
How can we ensure no more further calls to EtcdClient()?
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: D3Hunter, yudongusa, zimulala The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Not quite clear about your question 🤔 In this PR because it can compile, all callers should be switched to /retest |
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.