Skip to content

quarkus.datasource.jdbc.flush-on-close=true causes pool size to exceed max #47985

@shawkins

Description

@shawkins

Describe the bug

Having this flag set to true and with Agroal version 2.5 we can reproduce this issue also against a normal MSSQL. The max connection pool setting is not considered, and the number of idle connections grow and grow. With Agroal Version 2.3 there is no issue.

See also keycloak/keycloak#39488

Expected behavior

max connections should be honored

Actual behavior

max connections exceeded

How to Reproduce?

No simple reproducer yet.

Was logged initially as keycloak/keycloak#39488

@sschu @binchen-lin may be able to provide something here, or on an upstream agroal issue.

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

3.19

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/agroalarea/jdbcIssues related to the JDBC extensionskind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions