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

infosync: fully integrated PD HTTP client into InfoSyncer #49006

Merged
merged 5 commits into from
Dec 1, 2023

Conversation

JmPotato
Copy link
Member

@JmPotato JmPotato commented Nov 29, 2023

What problem does this PR solve?

Issue Number: ref #35319, tikv/pd#7300. Should merge after tikv/pd#7462.

Problem Summary:

Fully integrated PD HTTP client into InfoSyncer.

What changed and how does it work?

  • Replace the raw PD HTTP requests in InfoSyncer with the PD HTTP client completely.
  • Reuse the type definitions within the PD SDK as much as possible.

Check List

Tests

  • Unit test
  • Integration test

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

Signed-off-by: JmPotato <ghzpotato@gmail.com>
@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 29, 2023
Copy link

codecov bot commented Nov 29, 2023

Codecov Report

Merging #49006 (f8cf570) into master (129be4c) will increase coverage by 1.2581%.
Report is 41 commits behind head on master.
The diff coverage is 23.3333%.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #49006        +/-   ##
================================================
+ Coverage   70.9775%   72.2357%   +1.2581%     
================================================
  Files          1368       1398        +30     
  Lines        404391     416878     +12487     
================================================
+ Hits         287027     301135     +14108     
+ Misses        97368      96800       -568     
+ Partials      19996      18943      -1053     
Flag Coverage Δ
integration 43.8801% <23.3333%> (?)
unit 71.0249% <ø> (+0.0473%) ⬆️

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

Components Coverage Δ
dumpling 53.9663% <ø> (ø)
parser ∅ <ø> (∅)
br 48.3081% <0.0000%> (-4.7177%) ⬇️

Signed-off-by: JmPotato <ghzpotato@gmail.com>
@JmPotato JmPotato force-pushed the adpot_client_to_info_syncer branch from d3f9843 to 296a147 Compare November 29, 2023 08:55
@@ -279,43 +279,3 @@ func TestTiFlashManager(t *testing.T) {

CloseTiFlashManager(ctx)
}

func TestRuleOp(t *testing.T) {
Copy link
Member Author

@JmPotato JmPotato Nov 29, 2023

Choose a reason for hiding this comment

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

Signed-off-by: JmPotato <ghzpotato@gmail.com>
@CabinfeverB
Copy link
Contributor

Sry, I will update client.go right now.

@CabinfeverB
Copy link
Contributor

Maybe we should upgrade client go by tikv/client-go#1069, and try to pass all CI test. If pass, we can merge tikv/client-go#1069 by force

@JmPotato JmPotato force-pushed the adpot_client_to_info_syncer branch 3 times, most recently from 1a43944 to 2036b87 Compare November 30, 2023 10:26
Signed-off-by: JmPotato <ghzpotato@gmail.com>
@JmPotato JmPotato force-pushed the adpot_client_to_info_syncer branch from 2036b87 to 77e05cd Compare November 30, 2023 10:36
Signed-off-by: JmPotato <ghzpotato@gmail.com>
@CabinfeverB
Copy link
Contributor

/test build

Copy link

tiprow bot commented Dec 1, 2023

@CabinfeverB: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test tiprow_fast_test

Use /test all to run all jobs.

In response to this:

/test build

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.

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Dec 1, 2023
@disksing
Copy link
Contributor

disksing commented Dec 1, 2023

/merge

@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Dec 1, 2023
Copy link

ti-chi-bot bot commented Dec 1, 2023

@disksing: We have migrated to builtin LGTM and approve plugins for reviewing.

Please use /approve when you want approve this pull request.

The changes announcement: LGTM plugin changes

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.

Copy link

ti-chi-bot bot commented Dec 1, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-12-01 05:45:20.027697668 +0000 UTC m=+1160748.692923861: ☑️ agreed by hawkingrei.
  • 2023-12-01 06:35:56.824727196 +0000 UTC m=+1163785.489953390: ☑️ agreed by disksing.

Copy link
Contributor

@GMHDBJD GMHDBJD left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

ti-chi-bot bot commented Dec 1, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: disksing, GMHDBJD, hawkingrei, tangenta, YuJuncen

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added the approved label Dec 1, 2023
@JmPotato
Copy link
Member Author

JmPotato commented Dec 1, 2023

/test unit-test

Copy link

tiprow bot commented Dec 1, 2023

@JmPotato: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test tiprow_fast_test

Use /test all to run all jobs.

In response to this:

/test unit-test

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.

@ti-chi-bot ti-chi-bot bot merged commit 7353fbe into pingcap:master Dec 1, 2023
28 checks passed
@JmPotato JmPotato deleted the adpot_client_to_info_syncer branch December 1, 2023 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants