[SERVER-77851] Address recursive lock acquisition while shutting down the `ServerDiscoveryMonitor` Created: 06/Jun/23 Updated: 27/Oct/23 Resolved: 07/Jun/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Amirsaman Memaripour | Assignee: | [DO NOT USE] Backlog - Sharding NYC |
| Resolution: | Gone away | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Assigned Teams: |
Sharding NYC
|
||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 135 | ||||||||||||||||||||
| Description |
|
ServerDiscoveryMonitor cancels its ongoing remote calls during shutdown, while holding SingleServerDiscoveryMonitor::_mutex. This may result in recursive lock acquisition, which could result in dead-locks: https://linux.die.net/man/3/pthread_mutex_lock |
| Comments |
| Comment by George Wangensteen [ 07/Jun/23 ] |
|
amirsaman.memaripour@mongodb.com max.hirschhorn@mongodb.com , just to be clear, we plan on re-merging |
| Comment by Amirsaman Memaripour [ 07/Jun/23 ] |
|
Thank you max.hirschhorn@mongodb.com for brining |
| Comment by Max Hirschhorn [ 06/Jun/23 ] |
|
amirsaman.memaripour@mongodb.com, I believe we also reverted the changes from |
| Comment by Amirsaman Memaripour [ 06/Jun/23 ] |
|
Linked |