Skip to content

Comments

Log errors when policy change notifications fail (backport #15525)#15526

Merged
michaelklishin merged 1 commit intov4.2.xfrom
mergify/bp/v4.2.x/pr-15525
Feb 21, 2026
Merged

Log errors when policy change notifications fail (backport #15525)#15526
michaelklishin merged 1 commit intov4.2.xfrom
mergify/bp/v4.2.x/pr-15525

Conversation

@mergify
Copy link

@mergify mergify bot commented Feb 21, 2026

Previously, exceptions during policy change notifications in rabbit_policy:update_matched_objects/3 were silently swallowed by bare catch expressions. This meant that if a decorator's policy_changed callback failed (e.g. due to a node being unreachable), the error was invisible in the logs.
The policy itself was persisted, but the side effects (such as starting or stopping federation links) never took place, requiring a node restart to take effect.


This is an automatic backport of pull request #15525 done by [Mergify](https://mergify.com).

Previously, exceptions during policy change notifications in
rabbit_policy:update_matched_objects/3 were silently swallowed by bare
`catch` expressions. This meant that if a decorator's policy_changed
callback failed (e.g. due to a node being unreachable), the error was
invisible in the logs. The policy itself was persisted, but the
side effects (such as starting or stopping federation links) never
took place, requiring a node restart to take effect.

(cherry picked from commit 3576ee8)
@mergify mergify bot assigned ansd Feb 21, 2026
@michaelklishin michaelklishin added this to the 4.2.5 milestone Feb 21, 2026
@michaelklishin michaelklishin merged commit 06bf780 into v4.2.x Feb 21, 2026
291 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.2.x/pr-15525 branch February 21, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants