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

CSHARP-2423 Fixed Connection Pools lock contention #361

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

valentin-abalmasov
Copy link

Locks changed to lock-free containers in order to get rid of lock contention in "threads heavy" environments. JIRA issue
The main problem in existing code that all releases (Dispose) of connections inside pools was made inside lock. It is possible to rewrite existing code and move Dispose outside of the lock, but lock-free containers are far more effective that current solution

Locks changed to lock-free containers in order to get rid of lock contention in "threads heavy" environments
@valentin-abalmasov valentin-abalmasov changed the title CHARP-2423 Fixed Connection Pools lock contention CSHARP-2423 Fixed Connection Pools lock contention Dec 2, 2018
@medboz
Copy link

medboz commented Nov 17, 2023

@valentin-abalmasov did you found a solution for you lock contention issue, We have the same issue with MongoDb.Driver 2.18.0 ?
I see that related jira ticket is closed

@valentin-abalmasov
Copy link
Author

valentin-abalmasov commented Feb 9, 2024

@valentin-abalmasov did you found a solution for you lock contention issue, We have the same issue with MongoDb.Driver 2.18.0 ? I see that related jira ticket is closed

@medboz Unfortunately our fix was not accepted as merge request, but, we do apply the changes from merge request to our own fork of driver, because we still experience "lock contention" issue in our software

@BorisDog BorisDog self-requested a review April 12, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants