Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid registration of an extra transaction synchronization for Hibern…
…ate ORM Hibernate ORM can already handle everything we were doing through that extra synchronization. Note that without this patch: 1. Hibernate ORM flushes before transaction completion. 2. Then Hibernate ORM closes the connection wrapper. 3. Then Quarkus flushes again in its own synchronization, which usually does nothing, but in some cases (when the dirtiness of some entities cannot be known, for example when there are mutable @converted properties) it will execute the updates again... This is problematic in itself, but it will also lead to acquiring a new connection wrapper from Agroal, which will not be closed. 4. Then when the commit happens, Agroal notices a connection wrapper was not closed and logs a warning. Signed-off-by: Yoann Rodière <yoann@hibernate.org>
- Loading branch information