Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
118000: roachtest: run Read Committed variants of TPC-C without txn retry loops r=nvanbenschoten a=nvanbenschoten

Closes #115191.
Depends on #61986.

This commit switches the two nightly Read Committed variants of the TPC-C roachtest to run without transaction retry loops, using the `--txn-retries` flag introduced in #117096. With #117630 and #61986 resolved (the latter of which is still in review and under development), these tests both pass.

Release note: None

118600: gceworker bootstrap: fix checksum for go download r=rickystewart a=jlinder

On the last go version upgrade to cockroach, the wrong checksum was entered in the gceworker bootstrap script for the downloaded tar file. This fixes it to be the correct checksum.

Epic: none
Release note: None

Co-authored-by: Nathan VanBenschoten <[email protected]>
Co-authored-by: James H. Linder <[email protected]>
  • Loading branch information
3 people committed Feb 2, 2024
3 parents 6773e75 + c57ce62 + 0e751df commit 71cab3e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/bootstrap/bootstrap-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ sudo tar -C /usr --strip-components=1 -zxf /tmp/cmake.tgz && rm /tmp/cmake.tgz
trap 'rm -f /tmp/go.tgz' EXIT
curl -fsSL https://dl.google.com/go/go1.21.5.linux-amd64.tar.gz > /tmp/go.tgz
sha256sum -c - <<EOF
a2e1d5743e896e5fe1e7d96479c0a769254aed18cf216cf8f4c3a2300a9b3923 /tmp/go.tgz
e2bc0b3e4b64111ec117295c088bde5f00eeed1567999ff77bc859d7df70078e /tmp/go.tgz
EOF
sudo tar -C /usr/local -zxf /tmp/go.tgz && rm /tmp/go.tgz

Expand Down
19 changes: 15 additions & 4 deletions pkg/cmd/roachtest/tests/tpcc.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,13 @@ type tpccOptions struct {
// also be doing a rolling-restart into the new binary while the cluster
// is running, but that feels like jamming too much into the tpcc setup.
Start func(context.Context, test.Test, cluster.Cluster)
// If specified, assigned to StartOpts.ExtraArgs when starting cockroach.
ExtraStartArgs []string
DisableDefaultScheduledBackup bool
// SkipPostRunCheck, if set, skips post TPC-C run checks.
SkipPostRunCheck bool
// ExpensiveChecks, if set, runs expensive post TPC-C run checks.
ExpensiveChecks bool
DisableDefaultScheduledBackup bool
ExpensiveChecks bool
}

type workloadInstance struct {
Expand Down Expand Up @@ -152,6 +154,7 @@ func setupTPCC(
settings.Env = append(settings.Env, "COCKROACH_SCAN_MAX_IDLE_TIME=5ms")
}
startOpts := option.DefaultStartOpts()
startOpts.RoachprodOpts.ExtraArgs = opts.ExtraStartArgs
startOpts.RoachprodOpts.ScheduleBackups = !opts.DisableDefaultScheduledBackup
c.Start(ctx, t.L(), startOpts, settings, crdbNodes)
}
Expand Down Expand Up @@ -494,9 +497,13 @@ func registerTPCC(r registry.Registry) {
t.L().Printf("computed headroom warehouses of %d\n", headroomWarehouses)
runTPCC(ctx, t, c, tpccOptions{
Warehouses: headroomWarehouses,
ExtraRunArgs: "--isolation-level=read_committed",
ExtraRunArgs: "--isolation-level=read_committed --txn-retries=false",
Duration: 120 * time.Minute,
SetupType: usingImport,
// Increase the vmodule level around transaction pushes so that if we do
// see a transaction retry error, we can debug it. This may affect perf,
// so we should not use this as a performance test.
ExtraStartArgs: []string{"--vmodule=cmd_push_txn=2,queue=2"},
})
},
})
Expand Down Expand Up @@ -572,9 +579,13 @@ func registerTPCC(r registry.Registry) {
runTPCC(ctx, t, c, tpccOptions{
Warehouses: 1,
Duration: 10 * time.Minute,
ExtraRunArgs: "--wait=false --isolation-level=read_committed",
ExtraRunArgs: "--wait=false --isolation-level=read_committed --txn-retries=false",
SetupType: usingImport,
ExpensiveChecks: true,
// Increase the vmodule level around transaction pushes so that if we do
// see a transaction retry error, we can debug it. This may affect perf,
// so we should not use this as a performance test.
ExtraStartArgs: []string{"--vmodule=cmd_push_txn=2,queue=2"},
})
},
})
Expand Down

0 comments on commit 71cab3e

Please sign in to comment.