[SERVER-14058] Implement replication executor. Created: 27/May/14  Updated: 11/Jul/16  Resolved: 05/Jun/14

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

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

Issue Links:
Depends
is depended on by SERVER-17894 Add Collection Cloner to Data Replicator Closed
is depended on by SERVER-14033 replication topology coordinator Closed
is depended on by SERVER-17663 Add Fetcher to Data Replicator Closed
Related
Participants:

 Description   

The Replication Executor provides an event loop for executing callbacks within a single logical thread of control. It provides methods for scheduling delayed and immediate computation, scheduling network activity, and scheduling work to occur under the global exclusive lock. The initial implementation will use a thread pool for network operations, and expect the user to supply a single thread for executing its run loop.



 Comments   
Comment by Githook User [ 05/Jun/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-14058 Fix deadlock in ReplicationExecutor::shutdown().

Joining the network worker thread pool cannot be done while holding the
ReplicationExecutor's _mutex, because a thread in the pool might need that
_mutex to finish its work.
Branch: master
https://github.com/mongodb/mongo/commit/41465b6d3efb5563478bfa68fad874f4612ab135

Comment by Andy Schwerin [ 05/Jun/14 ]

Reopening to investigate test failures.

Comment by Githook User [ 04/Jun/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-14058 Implementation of ReplicationExecutor::NetworkInterface for use in mongod.
Branch: master
https://github.com/mongodb/mongo/commit/db53ec323146c5b2be95a209ecc166772772323a

Comment by Githook User [ 04/Jun/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-14058 Implementation of ReplicationExecutor event loop.
Branch: master
https://github.com/mongodb/mongo/commit/f49eeb2c20101ee06a0368ce08b56db39d372ac8

Comment by Githook User [ 27/May/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-14058 Move thread_pool into "foundation" library.
Branch: master
https://github.com/mongodb/mongo/commit/8b4103f6346e8bb4141925b53e397a6618dd8bad

Generated at Thu Feb 08 03:33:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.