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

Fail to reconnect to mysql when running with more than one thread #531

Open
joseadp opened this issue May 10, 2024 · 0 comments
Open

Fail to reconnect to mysql when running with more than one thread #531

joseadp opened this issue May 10, 2024 · 0 comments

Comments

@joseadp
Copy link

joseadp commented May 10, 2024

I am running sysbench with tppc.lua scripts to evaluate the properties of a VM that the database is running. Hence, during sysbench execution, I need to stop MySQL, and restart it afterwards. Sysbench works well when I'm running with a single thread. However, when I increase it to two or more threads, I sysbench stops running.

sysbench /usr/share/sysbench/tpcc.lua --threads=2 --time=3600 --tables=1 --scale=10 --events=100000 --report-csv=yes --report-interval=1 --rand-seed=10 --db-driver=mysql --mysql-host=IP_ADDRESS --mysql-port=3306 --mysql-ignore-errors=all --mysql-db=sbtest --mysql-user=DBtest --mysql-password='Password' run

When I stop MySQL continues working well (around second 6 for the following output). However, I obtain the following error: FATAL: 'thread_run' function failed: (not a string) and sysbench stops running.

sysbench 1.0.20 (using bundled LuaJIT 2.1.0-beta2)

Running the test with following options:
Number of threads: 2
Report intermediate results every 1 second(s)
Initializing random number generator from seed (10).


Initializing worker threads...

Threads started!

1,2,76.79,2144.07,973.31,1009.21,161.55,70.55,0.00,0.00
2,2,71.10,2109.98,962.36,1005.42,142.20,75.82,0.00,0.00
3,2,49.01,1331.40,611.18,622.19,98.03,116.80,0.00,0.00
4,2,55.94,1599.22,732.19,755.16,111.88,127.81,0.00,0.00
5,2,11.97,295.28,134.67,136.67,23.94,102.97,1.00,0.00
6,2,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00
7,2,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00
8,2,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00
9,2,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00

FATAL: `thread_run' function failed: (not a string)

I noticed that thread_run function is in the following lua file:

function thread_run(thread_id)

However, I could not understand why sysbench is throwing this error. Can you provide me some guidance?

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

No branches or pull requests

1 participant