FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Consistently stop already started `Lifecycle` beans on cancelled refresh · Issue #35964 · spring-projects/spring-framework · GitHub

Consistently stop already started Lifecycle beans on cancelled refresh #35964

Description

Hi!

Is it correct behavior?

We have two code snippets in the AbstractApplicationContext.class:

  • doClose() code - lifecycleProcessor.onClose(); before destroyBeans()

  • refresh() code destroyBeans() before any logic - so that some lifecycle beans will be remove and can't be stop

So we have some beans were starts, but not stopped if some fail during context initialization (refresh()...).

Thanks.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


Back | FazBrowse Home | New Git URL