Skip to content

fix: clear bound state on service destroy and guard observation hooks - #435

Merged
caalador merged 2 commits into
mainfrom
fix/service-destroy-and-request-end
Oct 6, 2026
Merged

caalador merged 2 commits into
mainfrom
fix/service-destroy-and-request-end

Conversation

@caalador

@caalador caalador commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

Clear the static registry, insights
buffers and UI state growth source
when the service that bound them is
destroyed, so a redeploy or DevTools
restart does not keep the previous
deployment in memory.

Catch failures from the HTTP observation
hooks so a throwing hook no longer
leaves the request scope or observation
open on the thread.

Related: #430

Clear the static registry, insights
buffers and UI state growth source
when the service that bound them is
destroyed, so a redeploy or DevTools
restart does not keep the previous
deployment in memory.

Catch failures from the HTTP observation
hooks so a throwing hook no longer
leaves the request scope or observation
open on the thread.

Related: #430
Only clear the active registry
when the last service bound to
the registry is destroyed.
@caalador
caalador merged commit ed4c4e8 into main Oct 6, 2026
4 checks passed
@caalador
caalador deleted the fix/service-destroy-and-request-end branch October 6, 2026 05:26
caalador added a commit that referenced this pull request Oct 6, 2026
…#435) (CP: 5.0) (#448)

This PR cherry-picks changes from the original PR #435 to branch 5.0.
---
#### Original PR description
> Clear the static registry, insights
> buffers and UI state growth source
> when the service that bound them is
> destroyed, so a redeploy or DevTools
> restart does not keep the previous
> deployment in memory.
> 
> Catch failures from the HTTP observation
> hooks so a throwing hook no longer
> leaves the request scope or observation
> open on the thread.
> 
> Related: #430
>

Co-authored-by: caalador <mikael.grankvist@vaadin.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants