diff --git a/server/embed/config_test.go b/server/embed/config_test.go index f5ec37f2eea2..73769408cd9a 100644 --- a/server/embed/config_test.go +++ b/server/embed/config_test.go @@ -115,6 +115,12 @@ func TestConfigFileFeatureGates(t *testing.T) { experimentalStopGRPCServiceOnDefrag: "false", expectErr: true, }, + { + name: "cannot set both experimental flag and feature gate flag for InitialCorruptCheck", + serverFeatureGatesJSON: "InitialCorruptCheck=true", + experimentalInitialCorruptCheck: "false", + expectErr: true, + }, { name: "ok to set different experimental flag and feature gate flag", serverFeatureGatesJSON: "DistributedTracing=true", diff --git a/server/etcdmain/help.go b/server/etcdmain/help.go index ed3cd2e1b3a0..b94779e5fdd8 100644 --- a/server/etcdmain/help.go +++ b/server/etcdmain/help.go @@ -273,7 +273,7 @@ Experimental distributed tracing: Number of samples to collect per million spans for distributed tracing. Disabled by default. Experimental feature: - --experimental-initial-corrupt-check 'false',It's deprecated, and will be decommissioned in v3.7. Use '--feature-gates=InitialCorruptCheck=true' instead. + --experimental-initial-corrupt-check 'false'.It's deprecated, and will be decommissioned in v3.7. Use '--feature-gates=InitialCorruptCheck=true' instead. Enable to check data corruption before serving any client/peer traffic. --experimental-corrupt-check-time '0s' Duration of time between cluster corruption check passes.