-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R2DBC Postgresql: Creating new Transactions org.springframework.transaction.reactive.AbstractReactiveTransactionManager Struck #531
Comments
We need a bit more context to diagnose the issue. Can you provide a connection list as seen from the database server and provide pool metrics (allocation, idle, active sizes)? |
Now the application is idle more than 2 hours. No active db connections founds I tried to login into the application. Now the connection was established with the database Snap from application server Please let me know if you need further details. Successful DB connection flow log information 2022-07-19 09:19:53,994 DEBUG o.s.t.r.AbstractReactiveTransactionManager [reactor-http-nio-2] Creating new transaction with name [com.authenticate.service.UserService.fetchUserWithRoles]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT,readOnly |
I have the same problem |
@mp911de We also have this problem, that our application is unable to obtain database connections from the connection pool. The PostgreSQL database does not see any open connections. We are using Spring Boot Our r2dbc pool metrics are:
|
With the recent upgrade of sprint boot version 2.7.1, we are unable to obtain the database connection from the r2dbc pool. The code strucks at the below line until we restart. Once restarted, the issues occurrence takes 2 to 3 days. No detailed logs printed
** DEBUG o.s.t.r.AbstractReactiveTransactionManager [reactor-http-nio-4] Creating new transaction with name [com.authenticate.service.UserService.fetchUserWithRoles]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT,readOnly **
#application.properties
Below is the db connection pool configuration
spring.r2dbc.pool.enabled=true
spring.r2dbc.pool.initial-size=5
spring.r2dbc.pool.max-size=10
spring.r2dbc.pool.max-idle-time=10m
spring.r2dbc.pool.max-acquire-time=30s
spring.r2dbc.pool.max-create-connection-time=30s
spring.r2dbc.pool.validation-query=SELECT 1
#application.yml
spring:
config:
activate:
on-profile: local
r2dbc:
url: r2dbc:postgresql://localhost:5432/mydb
username: postgres
The text was updated successfully, but these errors were encountered: