-
Notifications
You must be signed in to change notification settings - Fork 99
Pool hangs when trying to get connections wich closed on server timeout (they remain idle in pool) #82
Comments
Cross-post from r2dbc/r2dbc-pool#42 |
Hi there, Looks like the connections has been killed by server (because of timeout), and the driver does not support reconnect yet. So, response processor would be emit an error and would not set complete flag. Maybe driver need reconnect when connection has been killed by outside. About this problem, I will take a look that how to do this on JDBC. |
We had a similar issue with Postgres: pgjdbc/r2dbc-postgresql#177. It makes sense to complete all active/pending streams with an error signal. |
It was solved by #83 :
Those change have pushed to This issue will be close after Nov 10, if problem still exists, comment to this issue please. |
Hi, Have those change pushed to 0.8.2.RELEASE? |
@mirromutth Hello, I'm using r2dbc-pool 0.8.3 and still facing the similar issue. Below is the configuration properties.
Here's the log for it. After MySQL server close the connection after
|
Hi @mirromutth, There is a question about Environment
Observation
Question
|
Case:
When it hangs:
ERROR [lettuce-epollEventLoop-4-2] dev.miku.r2dbc.mysql.client.ReactorNettyClient: Exchange cancelled while exchange is active. This is likely a bug leading to unpredictable outcome.
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
@bean
public ConnectionFactory connectionFactory()
{
ConnectionFactoryOptions baseOptions = ConnectionFactoryOptions.parse(getUrl());
ConnectionFactoryOptions.Builder options = ConnectionFactoryOptions.builder().from(baseOptions);
The text was updated successfully, but these errors were encountered: