Percona-Lab/sysbench-tpcc

Payment choose warehouse incorrectly

Opened this issue · 0 comments

According to the TPCC spec, for payment transaction, the warehouse choosing rule is as follows:
image

So for any worker, the home warehouse should be fixed across a full run.

However in the code https://github.com/Percona-Lab/sysbench-tpcc/blob/master/tpcc_run.lua#L226, the home warehouse is selected randomly for each time we start a payment transaction.

I guess this might be a different implementation to TPC-C spec