[SERVER-22995] Protect TopologyCoordinator with mutex rather than single thread executor Created: 07/Mar/16  Updated: 02/Feb/17  Resolved: 14/Apr/16

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.3.5

Type: Task Priority: Major - P3
Reporter: Siyuan Zhou Assignee: Siyuan Zhou
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
Backwards Compatibility: Fully Compatible
Sprint: Repl 11 (03/11/16), Repl 12 (04/01/16), Repl 13 (04/22/16)
Participants:
Linked BF Score: 51

 Description   

TopologyCoordinator is protected by using a single thread executor currently. This task is to move its function calls out of the executor whenever it's possible and protect it with a mutex.



 Comments   
Comment by Githook User [ 15/Apr/16 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-22995 Fix synchronization of DBWorker in unittests.
Branch: master
https://github.com/mongodb/mongo/commit/04f48bd5ae704d3a8df8bf7b8864d7258f4241e3

Comment by Githook User [ 14/Apr/16 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-22995 Break the cycle of shared_ptr involving ScatterGatherRunner.
Branch: master
https://github.com/mongodb/mongo/commit/4562dd814feb56086d1af158a64e5dad3a6018aa

Comment by Githook User [ 12/Apr/16 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-22995 Protect TopoCoord with mutex rather than single thread executor.

Move scatter gather runner out of executor and protect the runner with its own mutex.
Replace onComplete with callbacks scheduled on finish event.
Branch: master
https://github.com/mongodb/mongo/commit/ded60f5d4254f08d76ccdf0d3a694d473bd14100

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