fix: stop peering delete routine on leader loss

pull/17483/head
DanStough 2023-05-25 18:27:52 -04:00
parent 5e846747f4
commit 38a42074ef
No known key found for this signature in database
GPG Key ID: 0D994ED7D73D7809
3 changed files with 9 additions and 0 deletions

3
.changelog/17483.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
peering: Fix a bug that caused server agents to continue cleaning up peering resources even after loss of leadership.
```

4
.changelog/_5614.txt Normal file
View File

@ -0,0 +1,4 @@
```release-note:bug
namespaces: **(Enterprise only)** fixes a bug where namespaces are stuck in a deferred deletion state indefinitely under some conditions.
Also fixes the Consul query metadata present in the HTTP headers of the namespace read and list endpoints.
```

View File

@ -364,6 +364,8 @@ func (s *Server) revokeLeadership() {
s.revokeEnterpriseLeadership()
s.stopDeferredDeletion()
s.stopFederationStateAntiEntropy()
s.stopFederationStateReplication()