From 4db379d3ba0fdd4533d1e7882f087c0cc70a22be Mon Sep 17 00:00:00 2001 From: Marek Siarkowicz Date: Fri, 17 Jan 2025 14:14:22 +0100 Subject: [PATCH] Fix passing compaction-batch-limit to etcd v3.4 and v3.5 Signed-off-by: Marek Siarkowicz --- tests/framework/e2e/cluster.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/framework/e2e/cluster.go b/tests/framework/e2e/cluster.go index 3da0ff9a8f2..f274441099e 100644 --- a/tests/framework/e2e/cluster.go +++ b/tests/framework/e2e/cluster.go @@ -640,6 +640,12 @@ func (cfg *EtcdProcessClusterConfig) EtcdServerProcessConfig(tb testing.TB, i in if flag == "experimental-snapshot-catchup-entries" && !CouldSetSnapshotCatchupEntries(execPath) { continue } + if flag == "experimental-compaction-batch-limit" { + continue + } + if flag == "compaction-batch-limit" { + flag = "experimental-compaction-batch-limit" + } args = append(args, fmt.Sprintf("--%s=%s", flag, value)) } envVars := map[string]string{}