From fd9ed45ec4bb27856cb8459ceb58248a0fb827ea Mon Sep 17 00:00:00 2001 From: Mia Epner Date: Thu, 9 Jan 2025 17:51:54 +0100 Subject: [PATCH] check if not initialized --- physical/raft/raft.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/physical/raft/raft.go b/physical/raft/raft.go index 9010270c3f55..979e0baa4ae0 100644 --- a/physical/raft/raft.go +++ b/physical/raft/raft.go @@ -1461,6 +1461,9 @@ func (b *RaftBackend) StartRemovedChecker(ctx context.Context) { for { select { case <-ticker.C: + if !b.Initialized() { + return + } removed, err := b.IsNodeRemoved(ctx, b.localID) if err != nil { logger.Error("failed to check if node is removed", "node ID", b.localID, "error", err)