Skip to content

Commit 5a19e11

Browse files
committed
Fix passing compaction-batch-limit to etcd v3.4 and v3.5
Signed-off-by: Marek Siarkowicz <[email protected]>
1 parent 9da01a8 commit 5a19e11

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/robustness/options/server_config_options.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ func WithSnapshotCount(input ...uint64) e2e.EPClusterOption {
2626
}
2727
}
2828

29-
func WithCompactionBatchLimit(input ...int) e2e.EPClusterOption {
29+
func WithExperimentalCompactionBatchLimit(input ...int) e2e.EPClusterOption {
3030
return func(c *e2e.EtcdProcessClusterConfig) {
31-
c.ServerConfig.CompactionBatchLimit = input[internalRand.Intn(len(input))]
31+
c.ServerConfig.ExperimentalCompactionBatchLimit = input[internalRand.Intn(len(input))]
3232
}
3333
}
3434

tests/robustness/scenarios/scenarios.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func Exploratory(_ *testing.T) []TestScenario {
9797
options.WithSubsetOptions(randomizableOptions...),
9898
e2e.WithGoFailEnabled(true),
9999
// Set low minimal compaction batch limit to allow for triggering multi batch compaction failpoints.
100-
options.WithCompactionBatchLimit(10, 100, 1000),
100+
options.WithExperimentalCompactionBatchLimit(10, 100, 1000),
101101
e2e.WithWatchProcessNotifyInterval(100 * time.Millisecond),
102102
}
103103

@@ -219,7 +219,7 @@ func Regression(t *testing.T) []TestScenario {
219219
Traffic: traffic.Kubernetes,
220220
Cluster: *e2e.NewConfig(
221221
e2e.WithClusterSize(1),
222-
e2e.WithCompactionBatchLimit(300),
222+
e2e.WithExperimentalCompactionBatchLimit(300),
223223
e2e.WithSnapshotCount(1000),
224224
e2e.WithGoFailEnabled(true),
225225
),

0 commit comments

Comments
 (0)