Defensive PersistenceExceptionTranslator
bean retrieval in PersistenceExceptionTranslationInterceptor
on shutdown
#33067
Labels
Milestone
Inspired by spring-projects/spring-boot#41092,
PersistenceExceptionTranslationInterceptor
should defensively retrievePersistenceExceptionTranslator
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 aBeanCreationNotAllowedException
fromdetectPersistenceExceptionTranslators
.The text was updated successfully, but these errors were encountered: