Skip to content

Commit

Permalink
Merge pull request #102482 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-23.1-102291

release-23.1: split: add additional lb split tests and fix decider weight
  • Loading branch information
kvoli authored May 10, 2023
2 parents e14e511 + 5df42dc commit 6c6d665
Show file tree
Hide file tree
Showing 9 changed files with 1,292 additions and 295 deletions.
444 changes: 352 additions & 92 deletions pkg/cmd/roachtest/tests/split.go

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions pkg/kv/kvserver/split/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,20 @@ go_test(
"weighted_finder_test.go",
],
args = ["-test.timeout=55s"],
data = glob(["testdata/**"]),
embed = [":split"],
deps = [
"//pkg/keys",
"//pkg/roachpb",
"//pkg/testutils/datapathutils",
"//pkg/testutils/skip",
"//pkg/util/encoding",
"//pkg/util/leaktest",
"//pkg/util/metric",
"//pkg/util/stop",
"//pkg/util/timeutil",
"//pkg/workload/ycsb",
"@com_github_cockroachdb_datadriven//:datadriven",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@org_golang_x_exp//rand",
Expand Down
2 changes: 1 addition & 1 deletion pkg/kv/kvserver/split/decider.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (d *Decider) recordLocked(
if d.mu.splitFinder != nil && n != 0 {
s := span()
if s.Key != nil {
d.mu.splitFinder.Record(span(), 1)
d.mu.splitFinder.Record(span(), float64(n))
}
if d.mu.splitFinder.Ready(now) {
if d.mu.splitFinder.Key() != nil {
Expand Down
Loading

0 comments on commit 6c6d665

Please sign in to comment.