What casuses Spring Boot Fail-safe cleanup (collections) to occur
In my case it was because of entities calling each other's hashcode recursively, if you use lombock remove it and make it yourself.Put breakpoint of debugger on the methods of two hashcodes. You'll sea that they are calling each other. Remove for example from the first entity's hashcode method second entity's link.
Firstly, it is a Hibernate Error handled by org.hibernate.engine
and has nothing to do with Spring Boot.
It can occur if you're fetching large amounts of data, like tens of thousands of entities with your HQL queries.
This can also be the case if you have mapped a one-to-many association which has many of child entities and due to bi-directional mapping the result-set is replicating infinitely.
Refer to link below for high performance JPA Tips.
https://vladmihalcea.com/14-high-performance-java-persistence-tips/
I Had This Problem When use Set, but When I do Change to List it's Solved You Should use
private List<FBT> fbts;