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
I want to warmup connection pool when the application start, and I want get some configs from database.
So I wrote this, Test is the name of database table.
warmup procedure and database query procedure running in parallel, and database query procedure will be waited until there is available connection to use.
Actual Behavior
database query procedure is stuck even if warmup procedure is complete.
change connectionPool.warmup().subscribe(); to connectionPool.warmup().block();
or
add spring.r2dbc.pool.max-acquire-time: 7s in application.yml, after 7 seconds, database query procedure go on and no errors in log file.
Your Environment
Reactor version(s) used: see pom.xml above
Other relevant libraries versions (eg. netty, ...): Mysql-5.7.41-winx64
JVM version (java -version): jdk 1.8.0_162
OS and version (eg uname -a): windows11 22621.1555
The text was updated successfully, but these errors were encountered:
I want to warmup connection pool when the application start, and I want get some configs from database.
So I wrote this,
Test
is the name of database table.Expected Behavior
warmup procedure and database query procedure running in parallel, and database query procedure will be waited until there is available connection to use.
Actual Behavior
database query procedure is stuck even if warmup procedure is complete.
Steps to Reproduce
pom.xml
java code
Possible Solution
change
connectionPool.warmup().subscribe();
toconnectionPool.warmup().block();
or
add
spring.r2dbc.pool.max-acquire-time: 7s
inapplication.yml
, after 7 seconds, database query procedure go on and no errors in log file.Your Environment
pom.xml
abovenetty
, ...): Mysql-5.7.41-winx64java -version
): jdk 1.8.0_162uname -a
): windows11 22621.1555The text was updated successfully, but these errors were encountered: