@@ -908,13 +908,15 @@ func (e *ETCD) cluster(ctx context.Context, reset bool, options executor.Initial
908908 ClientCertAuth : true ,
909909 TrustedCAFile : e .config .Runtime .ETCDPeerCA ,
910910 },
911- SnapshotCount : 10000 ,
912- ElectionTimeout : 5000 ,
913- HeartbeatInterval : 500 ,
914- Logger : "zap" ,
915- LogOutputs : []string {"stderr" },
916- ExperimentalInitialCorruptCheck : true ,
917- ListenClientHTTPURLs : e .listenClientHTTPURLs (),
911+ SnapshotCount : 10000 ,
912+ ElectionTimeout : 5000 ,
913+ HeartbeatInterval : 500 ,
914+ Logger : "zap" ,
915+ LogOutputs : []string {"stderr" },
916+ ListenClientHTTPURLs : e .listenClientHTTPURLs (),
917+
918+ ExperimentalInitialCorruptCheck : true ,
919+ ExperimentalWatchProgressNotifyInterval : e .config .Datastore .NotifyInterval ,
918920 }, e .config .ExtraEtcdArgs )
919921}
920922
@@ -967,20 +969,22 @@ func (e *ETCD) StartEmbeddedTemporary(ctx context.Context) error {
967969 embedded := executor.Embedded {}
968970 ctx , e .cancel = context .WithCancel (ctx )
969971 return embedded .ETCD (ctx , executor.ETCDConfig {
970- InitialOptions : executor.InitialOptions {AdvertisePeerURL : peerURL },
971- DataDir : tmpDataDir ,
972- ForceNewCluster : true ,
973- AdvertiseClientURLs : clientURL ,
974- ListenClientURLs : clientURL ,
975- ListenClientHTTPURLs : clientHTTPURL ,
976- ListenPeerURLs : peerURL ,
977- Logger : "zap" ,
978- HeartbeatInterval : 500 ,
979- ElectionTimeout : 5000 ,
980- SnapshotCount : 10000 ,
981- Name : e .name ,
982- LogOutputs : []string {"stderr" },
983- ExperimentalInitialCorruptCheck : true ,
972+ InitialOptions : executor.InitialOptions {AdvertisePeerURL : peerURL },
973+ DataDir : tmpDataDir ,
974+ ForceNewCluster : true ,
975+ AdvertiseClientURLs : clientURL ,
976+ ListenClientURLs : clientURL ,
977+ ListenClientHTTPURLs : clientHTTPURL ,
978+ ListenPeerURLs : peerURL ,
979+ Logger : "zap" ,
980+ HeartbeatInterval : 500 ,
981+ ElectionTimeout : 5000 ,
982+ SnapshotCount : 10000 ,
983+ Name : e .name ,
984+ LogOutputs : []string {"stderr" },
985+
986+ ExperimentalInitialCorruptCheck : true ,
987+ ExperimentalWatchProgressNotifyInterval : e .config .Datastore .NotifyInterval ,
984988 }, append (e .config .ExtraEtcdArgs , "--max-snapshots=0" , "--max-wals=0" ))
985989}
986990
0 commit comments