I am using Hibernate reactive in combination with Spring WebFlux, recently I started to receive a lot of issues with connections not being closed which results in timeouts when I try to perform the request to the db.
I am using: hibernate-reactive-core: 2.0.0.Final vertx-pg-client: 4.4.2 hibernate: 6.2.4.Final mutiny-reactor: 2.2.0
The issue is there is no stack trace and nothing for me to work with the connection leak could be happening anywhere in the application.
I never use openSession option in the application only withSession and withTransaction.
The only place I use await() option is for the healthcheck, other then that all operations are inside of the reactive context
Did anyone else run into this problem, and what were the issues you have discovered?
I have been working on this bug on and off for quite a while now: things I noticed are:
hibernate reactive hates concurrent updates to the db and could cause an issue when combined using Mono.zip.
I should not use the concurrent operations even search within the same session.