mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 09:42:25 +00:00
raft/autopilot: fix panic during autopilot shutdown (#27726)
* raft/autopilot: fix panic during autopilot shutdown * changelog
This commit is contained in:
3
changelog/27726.txt
Normal file
3
changelog/27726.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
raft/autopilot: Fixed panic that may occur during shutdown
|
||||
```
|
||||
@@ -636,7 +636,8 @@ func (b *RaftBackend) StopAutopilot() {
|
||||
if b.autopilot == nil {
|
||||
return
|
||||
}
|
||||
b.autopilot.Stop()
|
||||
stopCh := b.autopilot.Stop()
|
||||
<-stopCh
|
||||
b.autopilot = nil
|
||||
b.followerHeartbeatTicker.Stop()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user