[SERVER-15881] ReplCoordinatorImpl invokes forwardSlaveProgress unnecessarily while primary Created: 30/Oct/14  Updated: 19/Nov/14  Resolved: 30/Oct/14

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 2.8.0-rc0

Type: Bug 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:
Related
related to SERVER-15972 Replication state sometimes transitio... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Forwarding slave progress has the effect of waking up the sync source feedback thread, but when a node is primary, it has no sync source and so doesn't need to wake up that thread. Doing it leads to extra context switching and unproductive code execution, which can slow down heavily loaded nodes.



 Comments   
Comment by Githook User [ 30/Oct/14 ]

Author:

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

Message: SERVER-15881 Do not forward slave progress or handshakes when primary.
Branch: master
https://github.com/mongodb/mongo/commit/9cd693c414ce483c02211fe01f41540bcf4ba8bc

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