-
hello i am using hammerdb 4.7 with postgres 14.5. i have done a successful run with 1 vu and 1 async client per vu (so effectively no concurrency) but when i try multiple vus i get this error as example:
i have set the server to use serializable isolation level. has anyone seen this and know how to fix it? thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
How are you setting serializable isolation level? |
Beta Was this translation helpful? Give feedback.
-
assuming you are doing this:
If you use stored procedures instead of functions, you get this error which is clearer:
This is described here: https://www.postgresql.org/docs/current/transaction-iso.html HammerDB will not be introducing any changes to support serializable for PostgreSQL. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/TPC-Council/HammerDB/blob/master/src/postgresql/pgoltp.tcl
it seems the tx is rolled back only if there is a serialization_failure OR deadlock_detected OR no_data_found. shouldn't it be rolled back irrespective of the error? |
Beta Was this translation helpful? Give feedback.
You can look at examples of official reports on the TPC site, for example: https://www.tpc.org/results/fdr/tpcc/oracle_sparc_t5-8_tpc-c_fdr_032613.pdf
As it is all open source, you can of course modify to your own purposes. However, I do recomme…