[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: SERVER-46268 Release client lock before asserting in TopoVersionObserver tests
Branch: master
https://github.com/mongodb/mongo/commit/529501ec608e78d93364f163b56121a058fab3b7

Generated at Thu Feb 08 05:10:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.