From b8f0fda6c2e75b1975f818e274198bf38447faeb Mon Sep 17 00:00:00 2001 From: Nathan VanBenschoten Date: Wed, 24 Jan 2024 10:18:23 -0500 Subject: [PATCH] roachtest: add snapshot variant of tpcc This commit adds the following roachtest variant: ``` tpcc-nowait/isolation-level=snapshot/nodes=3/w=1 ``` Epic: None Release note: None --- pkg/cmd/roachtest/tests/tpcc.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pkg/cmd/roachtest/tests/tpcc.go b/pkg/cmd/roachtest/tests/tpcc.go index 12130c915844..cc02a4e7c0ec 100644 --- a/pkg/cmd/roachtest/tests/tpcc.go +++ b/pkg/cmd/roachtest/tests/tpcc.go @@ -540,6 +540,25 @@ func registerTPCC(r registry.Registry) { }) }, }) + r.Add(registry.TestSpec{ + Name: "tpcc-nowait/isolation-level=snapshot/nodes=3/w=1", + Owner: registry.OwnerTestEng, + Benchmark: true, + Cluster: r.MakeClusterSpec(4, spec.CPU(16)), + CompatibleClouds: registry.AllExceptAWS, + Suites: registry.Suites(registry.Nightly), + EncryptionSupport: registry.EncryptionMetamorphic, + Leases: registry.MetamorphicLeases, + Run: func(ctx context.Context, t test.Test, c cluster.Cluster) { + runTPCC(ctx, t, c, tpccOptions{ + Warehouses: 1, + Duration: 10 * time.Minute, + ExtraRunArgs: "--wait=false --isolation-level=snapshot", + SetupType: usingImport, + ExpensiveChecks: true, + }) + }, + }) r.Add(registry.TestSpec{ Name: "tpcc-nowait/isolation-level=read-committed/nodes=3/w=1", Owner: registry.OwnerTestEng,