Activate verifier when running WAL with experimental features (#19102)

* activate verifier when running WAL with experimental features

* only change verifier parameters if it's disabled (default value)
pull/19251/head
Dhia Ayachi 1 year ago committed by GitHub
parent 92ce814693
commit 226590541c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1115,6 +1115,10 @@ func (s *Server) setupRaft(isCatalogResourceExperiment bool) error {
// Only use WAL if there is no existing raft.db, even if it's enabled.
if s.config.LogStoreConfig.Backend == LogStoreBackendDefault && !boltFileExists && isCatalogResourceExperiment {
s.config.LogStoreConfig.Backend = LogStoreBackendWAL
if !s.config.LogStoreConfig.Verification.Enabled {
s.config.LogStoreConfig.Verification.Enabled = true
s.config.LogStoreConfig.Verification.Interval = 1 * time.Minute
}
if err = initWAL(); err != nil {
return err
}

Loading…
Cancel
Save