Skip to content
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

Could r2dbc pool provide a method/function to query connection infos in current pool? #215

Open
CennyMo opened this issue Jul 9, 2024 · 0 comments

Comments

@CennyMo
Copy link

CennyMo commented Jul 9, 2024

Feature Request

hopes to provide a method named getConnectionInfos() in ConnectionPool.class or PoolMetrics.class, which could return all connection info in current pool, and the connection info includes ip, port, and status(such as idle, close or running).

Is your feature request related to a problem? Please describe

When we performing pressure test (about 10tps) at r2dbc-mysql client, the database server shutdown and switches master to slave, and all the requests timeout after database has recovered. The exception throws by r2dbc-pool is "Connection acquisition timed out".
We guess the connections may stuck in query when database shut down, and fail to be released. However, we have no means to check the status of these connections, which makes it difficult to locate the bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant