From 226590541c1e923b9d05edf6e0c09c21462ac586 Mon Sep 17 00:00:00 2001 From: Dhia Ayachi Date: Tue, 10 Oct 2023 14:14:20 -0400 Subject: [PATCH] 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) --- agent/consul/server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/agent/consul/server.go b/agent/consul/server.go index 482d61fc03..697cca43f3 100644 --- a/agent/consul/server.go +++ b/agent/consul/server.go @@ -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 }