Skip to content

Commit 1b3cf49

Browse files
authored
Merge 5f5cb84 into blathers/backport-release-26.1-159881
2 parents 8ce0c20 + 5f5cb84 commit 1b3cf49

File tree

4 files changed

+0
-19
lines changed

4 files changed

+0
-19
lines changed

pkg/cmd/drtprod/configs/drt_scale_300.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ targets:
8080
- "COCKROACH_TESTING_FORCE_RELEASE_BRANCH=true"
8181
- "--env" # from defaults
8282
- "COCKROACH_INTERNAL_DISABLE_METAMORPHIC_TESTING=true"
83-
- "--env" # for MMA test case scenario
84-
- "COCKROACH_ALLOW_MMA=true"
8583
flags:
8684
# add flag to set provisioned throughput on each store according to their cloud provider limits
8785
enable-fluent-sink: true

pkg/cmd/roachtest/tests/allocation_bench.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ func setupAllocationBench(
302302
for i := 1; i <= spec.nodes; i++ {
303303
// Don't start a backup schedule as this test reports to roachperf.
304304
settings := install.MakeClusterSettings()
305-
settings.Env = append(settings.Env, "COCKROACH_ALLOW_MMA=true")
306305
startOpts := option.NewStartOpts(option.NoBackupSchedule)
307306
startOpts.RoachprodOpts.ExtraArgs = append(startOpts.RoachprodOpts.ExtraArgs,
308307
"--vmodule=store_rebalancer=2,allocator=2,replicate_queue=2")

pkg/kv/kvserver/kvserverbase/BUILD.bazel

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ go_library(
2121
"//pkg/roachpb",
2222
"//pkg/settings",
2323
"//pkg/settings/cluster",
24-
"//pkg/util/buildutil",
2524
"//pkg/util/debugutil",
26-
"//pkg/util/envutil",
2725
"//pkg/util/errorutil",
28-
"//pkg/util/errorutil/unimplemented",
2926
"//pkg/util/hlc",
3027
"//pkg/util/log",
3128
"//pkg/util/quotapool",

pkg/kv/kvserver/kvserverbase/base.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ import (
1717
"github.com/cockroachdb/cockroach/pkg/raft/raftpb"
1818
"github.com/cockroachdb/cockroach/pkg/roachpb"
1919
"github.com/cockroachdb/cockroach/pkg/settings"
20-
"github.com/cockroachdb/cockroach/pkg/util/buildutil"
21-
"github.com/cockroachdb/cockroach/pkg/util/envutil"
22-
"github.com/cockroachdb/cockroach/pkg/util/errorutil/unimplemented"
2320
"github.com/cockroachdb/cockroach/pkg/util/quotapool"
2421
"github.com/cockroachdb/redact"
2522
)
@@ -115,8 +112,6 @@ var MVCCGCQueueEnabled = settings.RegisterBoolSetting(
115112
true,
116113
)
117114

118-
var allowMMA = envutil.EnvOrDefaultBool("COCKROACH_ALLOW_MMA", false)
119-
120115
// LoadBasedRebalancingMode controls whether range rebalancing takes
121116
// additional variables such as write load and disk usage into account.
122117
// If disabled, rebalancing is done purely based on replica count.
@@ -133,14 +128,6 @@ var LoadBasedRebalancingMode = settings.RegisterEnumSetting(
133128
LBRebalancingMultiMetricAndCount: "multi-metric and count",
134129
},
135130
settings.WithPublic,
136-
settings.WithValidateEnum(func(enumStr string) error {
137-
isMMA := enumStr == "multi-metric and count" || enumStr == "multi-metric only"
138-
if buildutil.CrdbTestBuild || !isMMA || allowMMA {
139-
return nil
140-
}
141-
return unimplemented.NewWithIssue(
142-
103320, "multi-metric rebalancing not supported for production use")
143-
}),
144131
)
145132

146133
// LoadBasedRebalancingModeIsMMA returns true if the load-based rebalancing mode

0 commit comments

Comments
 (0)