[SERVER-46268] Release client lock before asserting in TopoVersionObserver tests Created: 20/Feb/20 Updated: 29/Oct/23 Resolved: 20/Feb/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Amirsaman Memaripour | Assignee: | Amirsaman Memaripour |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Sprint: | Service Arch 2020-02-24 |
| Participants: |
| Description |
|
The main thread could lock the client before the observer thread creates an OpCtx, causing this assertion to fail. As a result, the main thread will terminate holding on to the client lock, which in turn blocks observer thread, and results in a dead-lock. |
| Comments |
| Comment by Githook User [ 20/Feb/20 ] |
|
Author: {'username': 'samanca', 'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com'}Message: |