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

[sysbench] when use sysbench for arana test, not success #639

Open
dongzl opened this issue Mar 1, 2023 · 5 comments · Fixed by #669
Open

[sysbench] when use sysbench for arana test, not success #639

dongzl opened this issue Mar 1, 2023 · 5 comments · Fixed by #669
Assignees
Labels
bug Something isn't working

Comments

@dongzl
Copy link
Contributor

dongzl commented Mar 1, 2023

What would you like to be added:

Why is this needed:

FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:432: SQL error, errno = 0, state = '00000':
sysbench oltp_read_write  --mysql-user=root --mysql-password=root --mysql-host=sharding-ip --mysql-port=3307 --mysql-db=s1_sbtest --histogram=on --report-interval=1 --time=300  --db-ps-mode=disable  --threads=300 --tables=250 --table_size=25000  --report-interval=1 --percentile=95 --skip-trx=on --mysql-ignore-errors=1062  --forced-shutdown=1 run
FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:432: SQL error, errno = 0, state = '00000': 
FATAL: mysql_stmt_execute() returned error 0 () for query 'SELECT c FROM sbtest97 WHERE id BETWEEN ? AND ?'
2023-02-28T09:58:06.810Z	ERROR	mysql/execute_handle.go:95	get dataset error 533: invalid sequence, expected 0 got 1 (errno 2013) (sqlstate HY000)
2023-02-28T09:58:06.810Z	ERROR	mysql/execute_handle.go:76	executor com_query error 580: invalid sequence, expected 1 got 2 (errno 2013) (sqlstate HY000)
2023-02-28T09:58:06.810Z	ERROR	mysql/execute_handle.go:76	executor com_query error 563: invalid sequence, expected 1 got 40 (errno 2013) (sqlstate HY000)
对应错误的sql信息FATAL: mysql_drv_query() returned error 2013 (invalid sequence, expected 1 got 40) for query 'SELECT c FROM sbtest188 WHERE id=12610'
@dongzl dongzl added the bug Something isn't working label Mar 1, 2023
@dobet
Copy link
Contributor

dobet commented Mar 1, 2023

yes, i use sysbench test. Before use arana test, I use Xiaomi/Gaea test, have this bug also.
And Gaea use Tidb parser also. So I think this is maybe tidb parse bug

@jjeffcaii jjeffcaii self-assigned this Mar 18, 2023
@jjeffcaii
Copy link
Contributor

It seems that a concurrency bug of packet ephemeral policy in the protocol layer. I'm trying my best to diagnose this problem.

@jjeffcaii
Copy link
Contributor

BTW, the Xiaomi/Gaea and Arana, both used some codes from Vitess as the MySQL protocol implementation, maybe it's the reason that we have the same bug, I guess. 🤣

@dobet
Copy link
Contributor

dobet commented Mar 19, 2023

Yes, Xiaomi/Gaea have this bug also. vitess maybe have this bug, I don't test vitess, because it doesn't support auto read write split.

@jjeffcaii
Copy link
Contributor

There's a backend connection leak problem, and it causes sending continuous requests (see the pic below).
It has been fixed in the #669, @dobet please check out this PR, thanks.

image

@dongzl dongzl reopened this Apr 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants