Affects: 5.2.6.RELEASE
The following scenario triggers deadlock:
- Run non-main threads that invoke a method of
@Repository bean in @PostConstruct block.
- The method throws an exception.
- Wait the non-main threads to be completed in
@PostConstruct block.
This is a sample project to demonstrate it: https://github.com/izeye/spring-boot-throwaway-branches/tree/post-construct-deadlock
Just running it will trigger deadlock.
I'm not sure if this is unsupported usage or bug.
Affects: 5.2.6.RELEASE
The following scenario triggers deadlock:
@Repositorybean in@PostConstructblock.@PostConstructblock.This is a sample project to demonstrate it: https://github.com/izeye/spring-boot-throwaway-branches/tree/post-construct-deadlock
Just running it will trigger deadlock.
I'm not sure if this is unsupported usage or bug.