Closed MisteryX closed 5 years ago
Not sure this is a pool issue. Looks more related to the driver /cc @mirromutth
Connections with server timeout remain in pool as idle. If the most of the connections in pool stay idle but in fact they are closed...
I think, should be a trigger that processes events of server timeout/shutdown for particular connection in pool and actualizes connection statuses
Yeah, that's already on our radar, see r2dbc/r2dbc-spi#35.
Thank you! Are there any forcasts or plans about this feature in SPI?
Пятница, 25 октября 2019, 13:00 +03:00 от Mark Paluch notifications@github.com: Yeah, that's already on our radar, see r2dbc/r2dbc-spi#35 . — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub , or unsubscribe .
Максим Морсков
A driver/pool impl cannot implement anything that isn’t specified yet.
Case:
Mysql server 5.7.27, timeout = 180s
spring.r2dbc.connection-timeout=3s spring.r2dbc.pool.initial-size=10 spring.r2dbc.pool.max-size=200 spring.r2dbc.pool.max-idle-time=10s spring.r2dbc.pool.validation-query=SELECT 1 spring.r2dbc.pool.max-create-connection-time=3s spring.r2dbc.pool.max-acquire-time=5s spring.r2dbc.pool.max-life-time=180s
spring-data-r2dbc 1.0.0.RC1
r2dbc-pool 0.8.0.RC1
r2dbc-mysql 0.8.0.RC2