-
Notifications
You must be signed in to change notification settings - Fork 119
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
Error when running TPC-C MySQL with XML Connection Pool in HammerDB v4.0 #216
Comments
Many thanks for the Issue, yes you have found a bug. There is a debug line that if uncommented prints out the prepared statements.
Using your configuration I can reproduce the same error and the debug line shows that ostat and delivery are in the wrong place.
The bug is that in the driver script ostat_st is indeed in the wrong place before delivery_st when building the list of prepared statements. (Yes you are right it forces the use of prepared statements to maintain a list of what to execute for each connection).
Also if you have just 1 connection you can specify a policy of first_named (or last_named) instead. This is what I used to debug using 2 databases on the same host.
As a workaround for v4.0 you can edit the driver script and change this line (ie move ostat_st to the end). |
Fix is in Pull Request #217 |
Fix for Issue #216 Unkown prepared statement handler with connect pool
Could you inform me what settings to use to avoid this error ?
And if there is no documentation on how to set that up, It would be very helpful if you could add it.
I really wanted to contribute by finding ways to cope with the situation, but I didn't have the skills to do so.
Error Messages
MySQL Error Code 1243.
This message is displayed for all VUs.
Settings
・dict
For the other parameters, I used the same values as the settings that work fine in non-ConectionPool mode.
(Even if I don't set "mysql_prepared = true", it will be set to true internally in ConnectionPool mode, right?)
・mysqlcpool.xml
I installed HammerDB v4.0 on AWS EC2 - Amazon Linux2, and set up a MySQL 8.0.23 client using "yum".
I tried it with AWS RDS/MySQL 8.0.21 and AWS Aurora MySQL 5.7(mysql_aurora.2.09.2), reproduced it.
If in ConectionPool mode also directs all "sprocs.connections" to C1(Master Instance) only, this message will not be output.
If we set C2 only for "sprocs.orderstatusconnections" and C1 for the rest, an error message of "slev_st" will be output instead of "delivery_st" .
Furthermore, when I did the equivalent setting in PostgreSQL, no error message was output.
The text was updated successfully, but these errors were encountered: