backport of commit 38a42074efae2ba85663f696a971fdd1cc334681 (#17702)

Co-authored-by: DanStough <dan.stough@hashicorp.com>
This commit is contained in:
hc-github-team-consul-core 2023-06-13 10:45:44 -04:00 committed by GitHub
parent 8517e62fde
commit bf6dbcd47b
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()