cockroachdb / cockroachdb/cockroach

workload: implicit scatter when splits is set

Open
#113,892 0 comments 0 reactions 0 assignees View on GitHub
A-kv C-bug T-kv
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

**Describe the problem**

When the `--splits` workload flag has a positive value, the workload will also scatter the split ranges.

https://github.com/cockroachdb/cockroach/blob/56cf7310d0ff3937f057859d44f2d217632c82f6/pkg/workload/workloadsql/workloadsql.go#L186-L187

This is unexpected, since some workload implementations also offer the ability to scatter when the `--scatter` flag is given in tpcc or kv.

**Expected behavior**

Remove `scatter` from `kv` and `tpcc`, or add the scatter option explicitly to other workloads and remove the implicit scatter mentioned above.

**Environment:**
- All versions

Jira issue: CRDB-33247

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.