Skip to content

CRaC: ignore checkpointOnRefresh afterRestore #32978

Closed
@frederikz

Description

@frederikz

You do a spring.context.checkpoint=onRefresh. You do a CRaC restore. Your restored application needs to adapt its configuration which leads to a context refresh event which results in another checkpoint beeing created and the JVM exits.

Shouldn't checkpointOnRefresh be set to false in DefaultLifecycleProcessor in afterRestore (or after it was executed) or some other mechanism implemented that prevents the checkpointOnRefresh mechanism to be executed on a restored JVM? To me spring.context.checkpoint is an easy way to create a checkpoint and should never be executed on a restored JVM.

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