Skip to content

fix(server): continue notifying delegates after a synchronous failure - #5988

Merged
SteKoe merged 1 commit into
codecentric:masterfrom
Aminark:fix/notifier-sync-errors
Nov 27, 2026
Merged

SteKoe merged 1 commit into
codecentric:masterfrom
Aminark:fix/notifier-sync-errors

Conversation

@Aminark

@Aminark Aminark commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

CompositeNotifier already recovers when a delegate returns a failed Mono. A custom notifier can also throw while preparing the notification, before it returns a publisher. In that case the error handler has yet to be attached, and subsequent delegates can miss the event.

Defer the call to each delegate so both failure paths use the existing per-delegate recovery. The regression test puts a throwing notifier before a recording notifier and verifies that the latter still receives the DOWN event.

All 71 notifier and notification trigger tests pass. The full server suite had eight DNS-related failures on this machine. A separate run on unmodified master produced the same eight failing cases.

@Aminark
Aminark requested a review from a team as a code owner November 27, 2026 07:00
@SteKoe
SteKoe merged commit ba41b73 into codecentric:master Nov 27, 2026
2 checks passed
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