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-go: attach request source with retry info for coprocessor #46509

Merged
merged 2 commits into from
Sep 2, 2023

Conversation

you06
Copy link
Contributor

@you06 you06 commented Aug 30, 2023

What problem does this PR solve?

Issue Number: close #46514

Problem Summary:

What is changed and how it works?

Update client-go which will attach the request source with retry info for KV requests. This PR set the required options for coprocessor to enable the extra retry info.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

image

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

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

None

@ti-chi-bot ti-chi-bot bot added do-not-merge/invalid-title do-not-merge/needs-linked-issue 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 Aug 30, 2023
@tiprow
Copy link

tiprow bot commented Aug 30, 2023

Hi @you06. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

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/test-infra repository.

@you06
Copy link
Contributor Author

you06 commented Aug 31, 2023

/ok-to-test

@ti-chi-bot ti-chi-bot bot added the ok-to-test Indicates a PR is ready to be tested. label Aug 31, 2023
@hawkingrei
Copy link
Member

/test all

@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Merging #46509 (e9a5189) into master (d1483b8) will decrease coverage by 0.8794%.
Report is 40 commits behind head on master.
The diff coverage is 100.0000%.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #46509        +/-   ##
================================================
- Coverage   73.3755%   72.4961%   -0.8794%     
================================================
  Files          1303       1332        +29     
  Lines        394509     404591     +10082     
================================================
+ Hits         289473     293313      +3840     
- Misses        86640      92776      +6136     
- Partials      18396      18502       +106     
Flag Coverage Δ
integration 25.7408% <100.0000%> (?)
unit 73.4582% <100.0000%> (+0.0827%) ⬆️

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

Components Coverage Δ
dumpling 54.0444% <ø> (ø)
parser 84.9628% <ø> (-0.1011%) ⬇️
br 47.1104% <ø> (-5.2485%) ⬇️

@hawkingrei
Copy link
Member

/retest

}
s.sessionVars.RequestSourceType = stmtLabel
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a tiny fix because coprocessor will read request source from the session variables.

@you06
Copy link
Contributor Author

you06 commented Sep 1, 2023

/retest

Signed-off-by: you06 <[email protected]>
@you06 you06 changed the title attach request source with retry info for coprocessor client-go: attach request source with retry info for coprocessor Sep 1, 2023
@ti-chi-bot ti-chi-bot bot added approved needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Sep 1, 2023
@you06
Copy link
Contributor Author

you06 commented Sep 1, 2023

/retest

@ti-chi-bot
Copy link

ti-chi-bot bot commented Sep 1, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ekexium, zyguan

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 lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Sep 1, 2023
@ti-chi-bot
Copy link

ti-chi-bot bot commented Sep 1, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-09-01 06:54:34.201704682 +0000 UTC m=+2082838.750720668: ☑️ agreed by ekexium.
  • 2023-09-01 08:42:08.687357083 +0000 UTC m=+2089293.236373070: ☑️ agreed by zyguan.

@you06
Copy link
Contributor Author

you06 commented Sep 1, 2023

/retest

@cfzjywxk
Copy link
Contributor

cfzjywxk commented Sep 1, 2023

/merge

@ti-chi-bot
Copy link

ti-chi-bot bot commented Sep 1, 2023

@cfzjywxk: 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.

@hawkingrei
Copy link
Member

/retest

@hawkingrei
Copy link
Member

/test all

@tiprow
Copy link

tiprow bot commented Sep 2, 2023

@you06: 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
tiprow_fast_test e9a5189 link true /test tiprow_fast_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.

@ti-chi-bot ti-chi-bot bot merged commit b524a23 into pingcap:master Sep 2, 2023
6 of 9 checks passed
@you06 you06 added needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. needs-cherry-pick-release-7.1 Should cherry pick this PR to release-7.1 branch. labels Sep 6, 2023
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-7.1: #46705.

@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-6.5: #46706.

ti-chi-bot pushed a commit to ti-chi-bot/tidb that referenced this pull request Sep 6, 2023
cfzjywxk pushed a commit that referenced this pull request Sep 18, 2023
) (#47003)

* client-go: attach request source with retry info for coprocessor (#46509) (#46706)

close #46514

* restore bazelversiong

Signed-off-by: you06 <[email protected]>

* remove unused field

Signed-off-by: you06 <[email protected]>

* update client-go

Signed-off-by: you06 <[email protected]>

---------

Signed-off-by: you06 <[email protected]>
Co-authored-by: Ti Chi Robot <[email protected]>
you06 added a commit to ti-chi-bot/tidb that referenced this pull request Oct 16, 2023
Signed-off-by: ti-chi-bot <[email protected]>

resolve conflict

Signed-off-by: you06 <[email protected]>
guoshouyan pushed a commit to guoshouyan/tidb that referenced this pull request Mar 5, 2024
…gcap#46706) (pingcap#47003) (pingcap#6)

* client-go: attach request source with retry info for coprocessor (pingcap#46509) (pingcap#46706)

close pingcap#46514

* restore bazelversiong

Signed-off-by: you06 <[email protected]>

* remove unused field

Signed-off-by: you06 <[email protected]>

* update client-go

Signed-off-by: you06 <[email protected]>

---------

Signed-off-by: you06 <[email protected]>
Co-authored-by: Ti Chi Robot <[email protected]>

Signed-off-by: you06 <[email protected]>
Co-authored-by: you06 <[email protected]>
Co-authored-by: Ti Chi Robot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. needs-cherry-pick-release-7.1 Should cherry pick this PR to release-7.1 branch. ok-to-test Indicates a PR is ready to be tested. 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retry info for request resource of read requests.
6 participants