[SERVER-47451] Skip re-evaluating sync source if node does not have enough ping stats from other nodes in replica set Created: 10/Apr/20  Updated: 29/Oct/23  Resolved: 21/May/20

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

Type: Task Priority: Major - P3
Reporter: Samyukta Lanka Assignee: Xuerui Fa
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-47449 Re-evaluate sync source after fetchin... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2020-05-18, Repl 2020-06-01
Participants:

 Description   

Similar to how we wait for enough ping stats when choosing a sync source, we should wait for enough ping stats before re-evaluating our sync source.

We should wait for 5N pings (where N is the number of members in the replica set not counting ourselves) before re-evaluating our sync source to avoid unnecessary ping time fluctuation, since that is (approximately) the point at which all ping times will be weighted the same in the rolling average.



 Comments   
Comment by Githook User [ 21/May/20 ]

Author:

{'name': 'Xuerui Fa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-47451: Skip re-evaluating sync source if node does not have enough ping stats from other nodes in replica set
Branch: master
https://github.com/mongodb/mongo/commit/300d06e03402aae1240bad4582ad30ea4917e35f

Comment by Githook User [ 21/May/20 ]

Author:

{'name': 'Xuerui Fa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: Revert "SERVER-47451: Skip re-evaluating sync source if node does not have enough ping stats from other nodes in replica set"

This reverts commit 6696c3edd281bd4f0eea7d5439902eb460128890.
Branch: master
https://github.com/mongodb/mongo/commit/960e0ee34d6f6f1cc4171f739c5a3bbff105931a

Comment by Githook User [ 20/May/20 ]

Author:

{'name': 'Xuerui Fa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-47451: Skip re-evaluating sync source if node does not have enough ping stats from other nodes in replica set
Branch: master
https://github.com/mongodb/mongo/commit/6696c3edd281bd4f0eea7d5439902eb460128890

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