Skip to content

Connection pool doesn't maintain minIdle connections - all idle connections get closed after maxIdleTime #224

@vavisha

Description

@vavisha

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

  1. 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
  1. Run the application
  2. 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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions