Bug Report
Versions
r2dbc-pool-1.0.2.RELEASE
r2dbc-postgresql-1.0.7.RELEASE
spring-boot-3.4.3
postgres:15.7
Current Behavior
Connection pool doesn't maintain minIdle connections - all idle connections get closed after maxIdleTime
Steps to reproduce
- Configure the settings
spring.r2dbc.pool.min-idle: 20
spring.r2dbc.pool.initial-size: 20
spring.r2dbc.pool.max-size: 100
spring.r2dbc.pool.max-idle-time: 10s
- Run the application
- Wait 10 seconds
All connections were closed (due to database inactivity)
Expected behavior/code
Idle connections should never drop below the value specified in spring.r2dbc.pool.min-idle"