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

tpcc: refresh conn if pingContext fails #76

Merged
merged 2 commits into from
Mar 29, 2021
Merged

Conversation

mahjonp
Copy link
Contributor

@mahjonp mahjonp commented Mar 27, 2021

Signed-off-by: mahjonp junpeng.man@gmail.com

This PR fixes the invalid connection error when the tidb-server is killed

[mysql] 2021/03/27 07:50:25 packets.go:36: unexpected EOF
[2021-03-27 07:50:25] execute run failed, err invalid connection
[2021-03-27 07:50:25] execute run failed, err invalid connection
[2021-03-27 07:50:25] execute run failed, err invalid connection
execute run failed, err invalid connection
execute run failed, err invalid connection
execute run failed, err invalid connection
[2021-03-27 07:50:25] execute run failed, err invalid connection
execute run failed, err invalid connection
[mysql] 2021/03/27 07:50:25 packets.go:36: unexpected EOF
[mysql] 2021/03/27 07:50:25 packets.go:36: unexpected EOF

Signed-off-by: mahjonp <junpeng.man@gmail.com>
@mahjonp mahjonp requested a review from cosven March 27, 2021 12:01
Copy link

@cosven cosven left a comment

Choose a reason for hiding this comment

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

rest LGTM

pkg/workload/base.go Outdated Show resolved Hide resolved
Signed-off-by: mahjonp <junpeng.man@gmail.com>
@mahjonp mahjonp merged commit 9173047 into master Mar 29, 2021
@mahjonp mahjonp deleted the tpcc_refresh_conn branch March 29, 2021 01:27
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants