[SERVER-27940] Deadlock ReplicaSetMonitorManager on shutdown Created: 07/Feb/17  Updated: 05/Apr/17  Resolved: 08/Feb/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.4.3, 3.5.3

Type: Bug Priority: Major - P3
Reporter: Misha Tyulenev Assignee: Misha Tyulenev
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.4
Sprint: Sharding 2017-02-13
Participants:
Linked BF Score: 0

 Description   

ReplicaSetMonitorManager calls

_taskExecutor->join()

while holding a mutex which is not a good idea as another thread can run the task on the _taskExecutor that will need to lock the same mutex that is held in the shutdown.



 Comments   
Comment by Githook User [ 14/Feb/17 ]

Author:

{u'username': u'mikety', u'name': u'Misha Tyulenev', u'email': u'misha@mongodb.com'}

Message: SERVER-27940: fix deadlock in ReplicaSetMonitorManager on shutdown

(cherry picked from commit b65f66e20f7ba380b2202947b68db89d42c45931)
Branch: v3.4
https://github.com/mongodb/mongo/commit/4cba21153f1b013d8a8a5952c4718a95251a380e

Comment by Githook User [ 08/Feb/17 ]

Author:

{u'username': u'mikety', u'name': u'Misha Tyulenev', u'email': u'misha@mongodb.com'}

Message: SERVER-27940: fix deadlock in ReplicaSetMonitorManager on shutdown
Branch: master
https://github.com/mongodb/mongo/commit/b65f66e20f7ba380b2202947b68db89d42c45931

Generated at Thu Feb 08 04:16:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.