Skip to content

Defensive PersistenceExceptionTranslator bean retrieval in PersistenceExceptionTranslationInterceptor on shutdown #33067

@jhoeller

Description

@jhoeller

Inspired by spring-projects/spring-boot#41092, PersistenceExceptionTranslationInterceptor should defensively retrieve PersistenceExceptionTranslator beans, covering scenarios where the translator has not been initialized before shutdown but a late request starts using the persistence infrastructure during shutdown. It could simply rethrow the original exception as-is in case of a BeanCreationNotAllowedException from detectPersistenceExceptionTranslators.

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions