Closed hestad closed 3 years ago
Hi, thanks for the post. I guess that the problem could be caused by the implementation of the custom preparer. Because the preparer calls some sql statements, but does not release the underlying resources after the operations are completed. So please make sure that the close methods are called property on all connection and statement objects. Furthermore, for optimal performance, the preparer implementation should also implement equals
and hashCode
methods. This is necessary for the caching mechanism to work properly.
Closing the connections and statements did the trick :sweat_smile: I also added the equals and hashCode for good measure; but the cache was working already (because it was the same object).
Thanks :) I'll close this on my way out.
Hi :)
I've ran into this badboy:
Versions: Kotlin 1.5.30, Java 16.0.2, Postgres 11.7, jupiter 5.7.2, gradle 7.2, Zonky 1.3.1 As the build time increases over time, We're trying to run most of our tests in parallel. Without success this far. We have hundreds of db-test using a separate dataSource thanks to these embedded-pg repos :) It is hard to reproduce at my 8 core / 16 thread intel cpu (but it happens from time to time), but it fails regularly at the Github Action instance.
gradle settings:
Code setup (package global)