roachtest: add mixed isolation level variant of TPC-C #118272
Labels
A-kv-transactions
Relating to MVCC and the transactional model.
A-read-committed
Related to the introduction of Read Committed
A-testing
Testing tools and infrastructure
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-kv
KV Team
We currently have variants of TPC-C that run at Serializable, Read Committed, and (soon) Snapshot isolation.
We should add another variant called
tpcc-nowait/isolation-level=mixed/nodes=3/w=1
, which runs some transactions at each isolation level.The best way to implement this is probably to extend
workload tpcc
's (pkg/workload/tpcc/tpcc.go
)--isolation-level
flag to accept amixed
value. This would round robin through the three possible isolation levels, setting a differentdefault_transaction_isolation
on each SQL conn (aroundSetDefaultIsolationLevel
).Jira issue: CRDB-35655
The text was updated successfully, but these errors were encountered: