Skip to content

Commit

Permalink
fix: stop peering delete routine on leader loss
Browse files Browse the repository at this point in the history
  • Loading branch information
DanStough committed May 26, 2023
1 parent 720dda7 commit e19c0ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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: 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 e19c0ce

Please sign in to comment.