-
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
*: update tikv/client-go to fix batch-client send loop panic issue #47716
Conversation
Signed-off-by: crazycs520 <[email protected]>
Signed-off-by: crazycs520 <[email protected]>
Hi @crazycs520. 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/test-infra repository. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #47716 +/- ##
================================================
+ Coverage 71.9075% 72.8055% +0.8979%
================================================
Files 1398 1423 +25
Lines 405084 416081 +10997
================================================
+ Hits 291286 302930 +11644
- Misses 94200 94208 +8
+ Partials 19598 18943 -655
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: crazycs520 <[email protected]>
/retest-required |
@crazycs520: Cannot trigger testing until a trusted user reviews the PR and leaves an 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/test-infra repository. |
/ok-to-test |
session.ResultSetToStringSlice(ctx, tk.Session(), rs) | ||
} | ||
} | ||
|
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.
Please remove this useless line.
Besides, I ran this test(with --with-real-tikv
and -race
) locally with the master version 2 twice and passed both times. Is this test unreliable or does it need to work well on CI?
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.
Nice catch. I wrote this test in the release-6.5 branch first time, and the test will fail in release-6.5 branch.
Master branch can pass the test even without tikv/client-go#1021 , I still keep the test to detect data race in future.
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.
In release-6.5 run this test will fail.
github.com/pingcap/tidb release-6.5 ✗
▶ cd tests/realtikvtest/sessiontest/
tests/realtikvtest/sessiontest release-6.5 ✗
▶ go test -race --tags=intest -run=TestBatchClientDataRace --with-real-tikv=true
...
...
...
[2023/10/18 14:56:15.607 +08:00] [INFO] [pd.go:209] ["closed pd http client"]
--- FAIL: TestBatchClientDataRace (31.54s)
testing.go:1465: race detected during execution of test
FAIL
exit status 1
FAIL github.com/pingcap/tidb/tests/realtikvtest/sessiontest 32.724s
Signed-off-by: crazycs520 <[email protected]>
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.
LGTM
Signed-off-by: crazycs520 <[email protected]>
Signed-off-by: crazycs520 <[email protected]>
Signed-off-by: crazycs520 <[email protected]>
@crazycs520: The following test failed, say
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. |
@crazycs520: The following test failed, say
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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nolouch, zimulala 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 |
@crazycs520 |
#48109 already updated the go.mod. |
/found community |
What problem does this PR solve?
Issue Number: close #47691
related PR: tikv/client-go#1021
Problem Summary: update tikv/client-go to fix batch-client send loop panic issue
What is changed and how it works?
Check List
Tests
Unit test
Integration test
Side effects
Performance regression: Consumes more CPU
Performance regression: Consumes more Memory
Breaking backward compatibility
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.