-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
*: avoid concurrently using the session in the syncload #52830
Conversation
Signed-off-by: Weizhen Wang <[email protected]>
Signed-off-by: Weizhen Wang <[email protected]>
Signed-off-by: Weizhen Wang <[email protected]>
/retest |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #52830 +/- ##
================================================
+ Coverage 72.3201% 75.6685% +3.3483%
================================================
Files 1474 1478 +4
Lines 427611 432436 +4825
================================================
+ Hits 309249 327218 +17969
+ Misses 99057 85068 -13989
- Partials 19305 20150 +845
Flags with carried forward coverage won't be shown. Click here to find out more.
|
task1.Retry = 0 | ||
for i := 0; i < syncload.RetryCount*5; i++ { | ||
task1, err1 = h.HandleOneTask(testKit.Session().(sessionctx.Context), task1, exitCh) | ||
require.Error(t, err1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assert the err1 msg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It failpoints a panic in the program. so HandleOneTask
can quickly exit and create many goroutine in the tests.
[LGTM Timeline notifier]Timeline:
|
/hold wait for test result from QA. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AilinKid, lcwangchao, winoros 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 |
/unhold |
/retest |
/cherrypick release-8.1 |
@hawkingrei: new pull request created to branch 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 ti-community-infra/tichi repository. |
Signed-off-by: ti-chi-bot <[email protected]>
@hawkingrei: new pull request created to branch 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 ti-community-infra/tichi repository. |
/cherrypick release-7.5 |
@hawkingrei: new pull request created to branch 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 ti-community-infra/tichi repository. |
Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: ti-chi-bot <[email protected]>
/cherrypick release-7.1 |
@hawkingrei: new pull request created to branch 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 ti-community-infra/tichi repository. |
Signed-off-by: ti-chi-bot <[email protected]>
What problem does this PR solve?
Issue Number: close #52827
Problem Summary:
What changed and how does it work?
when
singleflight
meets timeout, some goroutines will concurrently use reuse session. we should keep everyone using independent sessions.Check List
Tests
run it in the HA, It can pass test.
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.