Skip to content

fix(server): isolate failures when sending reminders - #5843

Merged
SteKoe merged 2 commits into
codecentric:masterfrom
Aminark:fix/reminder-error-isolation
Oct 30, 2026
Merged

SteKoe merged 2 commits into
codecentric:masterfrom
Aminark:fix/reminder-error-isolation

Conversation

@Aminark

@Aminark Aminark commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

A failed reminder currently terminates the whole sendReminders() batch. The fail-fast flatMap also cancels other in-flight notifications, so one failing instance can prevent reminders for unrelated instances from being delivered.

Handle errors inside each reminder publisher and defer the delegate invocation so synchronous exceptions receive the same treatment. Keep the successful-send timestamp update before error recovery: failed reminders remain due for the next check, while successful reminders wait for the configured period.

Validation on Java 17:

  • New regression cases cover synchronous exceptions, reactive errors, retrying only failed reminders, and keeping another in-flight reminder subscribed.
  • All 3 new cases fail on the original implementation.
  • mvn -f spring-boot-admin-server/pom.xml test -DdisableSpringSnapshots -Dtest=RemindingNotifierTest,CompositeNotifierTest: 13 tests pass with no failures, errors, or skips.
  • Checkstyle and Spring Java Format validation pass.

@Aminark
Aminark requested a review from a team as a code owner October 28, 2026 05:28
@SteKoe
SteKoe merged commit bb67259 into codecentric:master Oct 30, 2026
1 check 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