Skip to content

Commit

Permalink
roachtest: Fix ycsb workload to avoid column families
Browse files Browse the repository at this point in the history
The update_heavy test had failures because the ycsb workload
was using column families, which aren't supported for LDR.

Release note: none
Fixes: cockroachdb#128740
  • Loading branch information
navsetlur committed Aug 12, 2024
1 parent 85b9ea3 commit 55ed1c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/roachtest/tests/logical_data_replication.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ type ycsbWorkload struct {
}

func (ycsb ycsbWorkload) sourceInitCmd(tenantName string, nodes option.NodeListOption) string {
cmd := roachtestutil.NewCommand(`./cockroach workload init ycsb`).
cmd := roachtestutil.NewCommand(`./cockroach workload init ycsb --families=false`).
MaybeFlag(ycsb.initRows > 0, "insert-count", ycsb.initRows).
MaybeFlag(ycsb.initSplits > 0, "splits", ycsb.initSplits).
Arg("{pgurl%s:%s}", nodes, tenantName)
return cmd.String()
}

func (ycsb ycsbWorkload) sourceRunCmd(tenantName string, nodes option.NodeListOption) string {
cmd := roachtestutil.NewCommand(`./cockroach workload run ycsb`).
cmd := roachtestutil.NewCommand(`./cockroach workload run ycsb --families=false`).
Option("tolerate-errors").
Flag("workload", ycsb.workloadType).
MaybeFlag(ycsb.debugRunDuration > 0, "duration", ycsb.debugRunDuration).
Expand Down

0 comments on commit 55ed1c8

Please sign in to comment.