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

[client-v2] Fixed cleaning expired connections from the pool #2124

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

chernser
Copy link
Contributor

@chernser chernser commented Jan 30, 2025

Summary

Expired connections are not removed from the pool. It causes two problem with metrics: they do not reflect actual state.
This PR calls poolControl.closeExpired() before each request. It should not create a problem with pool.

Closes #2123

Checklist

Delete items not relevant to your PR:

@chernser
Copy link
Contributor Author

chernser commented Jan 30, 2025

Call to clear expired connection is not among hot spots (look for com.clickhouse.shaded.org.apache...) :
image

@chernser chernser merged commit 6788dbc into main Jan 30, 2025
30 checks passed
@chernser chernser deleted the v2_micrometer_pool_metrics_not_updated branch January 30, 2025 20:28
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

Successfully merging this pull request may close these issues.

[client-v2] Number of active connections never drop after reaching max.
1 participant