Skip to content

fix(server): stop event handlers on context close - #5888

Merged
SteKoe merged 1 commit into
masterfrom
fix/5887-shutdown-race
Nov 9, 2026
Merged

SteKoe merged 1 commit into
masterfrom
fix/5887-shutdown-race

Conversation

@SteKoe

@SteKoe SteKoe commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Stop SBA event handlers when the application context closes, canceling active reactive subscriptions earlier in shutdown.
  • Add a regression test for cancellation of an in-flight status update.

Closes #5887

Verification

  • ./mvnw -pl spring-boot-admin-server -Dtest=StatusUpdateTriggerTest test (8 tests passed)
  • Reproduced the Hazelcast shutdown race in the runtime playground before the fix; no Hazelcast inactive exception in two post-fix shutdown runs.

@SteKoe
SteKoe requested a review from a team as a code owner November 9, 2026 15:17
@SteKoe
SteKoe enabled auto-merge (squash) November 9, 2026 15:17
@SteKoe
SteKoe merged commit 3894e8b into master Nov 9, 2026
2 checks passed
@SteKoe
SteKoe deleted the fix/5887-shutdown-race branch November 9, 2026 15:29
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.

Bug: Race condition on shutdown

1 participant