fix: stop peering delete routine on leader loss (#17483)

This commit is contained in:
Dan Stough 2023-06-13 10:20:56 -04:00 committed by GitHub
parent ddce431bd7
commit bba5cd8455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()