You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, it's using 1.0.0.Final, and we can get the blocking error:
...
17:05:04.327 [vert.x-eventloop-thread-1] INFO org.hibernate.dialect.Dialect - HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL10Dialect
17:05:04.476 [vert.x-eventloop-thread-1] INFO org.hibernate.reactive.provider.impl.ReactiveIntegrator - HR000001: Hibernate Reactive Preview
17:05:04.673 [vert.x-eventloop-thread-1] INFO org.hibernate.reactive.pool.impl.DefaultSqlClientPool - HR000011: SQL Client URL [jdbc:postgresql://localhost:5432/white-rabbit]
17:05:04.676 [vert.x-eventloop-thread-1] INFO org.hibernate.reactive.pool.impl.DefaultSqlClientPoolConfiguration - HR000025: Connection pool size: 10
17:05:05.405 [vertx-blocked-thread-checker] WARN io.vertx.core.impl.BlockedThreadChecker - Thread Thread[vert.x-eventloop-thread-1,5,main] has been blocked for 2879 ms, time limit is 2000 ms
17:05:06.405 [vertx-blocked-thread-checker] WARN io.vertx.core.impl.BlockedThreadChecker - Thread Thread[vert.x-eventloop-thread-1,5,main] has been blocked for 3880 ms, time limit is 2000 ms
But when changing to 1.0.0.CR10, everything works fine.
The text was updated successfully, but these errors were encountered:
withSession doesn't flush the session, so the persist wasn't happening. You can solve this by using withTransaction instead. Or you could flush the session after the persist.
The automatic schema creation when the factory is started is a blocking operation, so it needs to be run in vertx.executeBlocking. This is on us because I don't think we mention it in the documentation.
There was probably something else wrong because this test cannot work. It doesn't matter which library version you use.
I did some refactoring and now everything works as expected. You can see that with 1.0.0.Final, it uses the correct Vert.x instance. I've applied the changes (and a bit of refactoring) in this commit: DavideD/hibernate-reactive-1_0_0-final-bug-test@167fbc3.
Please, let me know if you have more questions or something else doesn't work.
I will close this issue for now.
Description
When using
1.0.0.Final
,SessionFactory
cannot be created and blocks the main thread. But1.0.0.CR10
is still working. Guessing it's related to #995.Demo
https://github.com/UkonnRa/hibernate-reactive-1_0_0-final-bug-test
By default, it's using
1.0.0.Final
, and we can get the blocking error:But when changing to
1.0.0.CR10
, everything works fine.The text was updated successfully, but these errors were encountered: