Skip to content

Commit

Permalink
fix: stop peering delete routine on leader loss (#17483)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanStough committed Jun 13, 2023
1 parent ddce431 commit bba5cd8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/17483.txt
Original file line number Diff line number Diff line change
@@ -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 changes: 4 additions & 0 deletions .changelog/_5614.txt
Original file line number Diff line number Diff line change
@@ -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.
```
2 changes: 2 additions & 0 deletions agent/consul/leader.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ func (s *Server) revokeLeadership() {

s.revokeEnterpriseLeadership()

s.stopDeferredDeletion()

s.stopFederationStateAntiEntropy()

s.stopFederationStateReplication()
Expand Down

0 comments on commit bba5cd8

Please sign in to comment.