Repository navigation
fix(server): avoid duplicate reminders during slow delivery - #6006
Merged
SteKoe merged 2 commits intoNov 28, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
A critical cancellation race in RemindingNotifier can strand a claimed reminder with delivering permanently set to true, so the active issue must be fixed before approval.
1 open issue
What changed in this PR
This PR prevents duplicate reminder notifications when delivery remains in progress across reminder checks, while allowing failed or cancelled deliveries to be retried.
Changes:
- Tracks in-flight delivery state for each reminder.
- Advances the reminder period only after successful delivery completion.
- Adds tests for overlapping deliveries and cancellation-based retries.
| File | Description |
|---|---|
| spring-boot-admin-server/src/test/java/de/codecentric/boot/admin/server/notify/RemindingNotifierTest.java | Adds tests verifying duplicate reminders are skipped during slow delivery and cancelled deliveries are retried. |
| spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/notify/RemindingNotifier.java | Adds per-reminder in-flight delivery tracking and completion handling for successful, failed, and cancelled deliveries. |
Review effort: Lite
Comment on lines
112
to
113
| .filter((reminder) -> reminder.startIfDue(now, this.reminderPeriod)) | ||
| .flatMap((reminder) -> Mono.defer(() -> this.delegate.notify(reminder.getEvent())) |
SteKoe
enabled auto-merge (squash)
November 28, 2026 09:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

If a notification takes longer to deliver than the reminder check interval, the next tick can send the same reminder again. Its last delivery time is only updated when the delegate completes.
Track delivery per reminder so overlapping checks skip the pending notification while other instances remain eligible. A successful delivery starts the next reminder period. An error or cancellation makes the reminder eligible for retry.
The tests hold a delegate open across two checks and verify it is called once. They also cancel an in-flight delivery and verify that the next check retries it.