-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
None
-
Fully Compatible
-
Repl 2020-07-13
Instead of using the latest optime for the batch that was just fetched, we should use the latest optime in the previous batch. If we find that the node wants to change sync sources, then we will abandon the batch that was just fetched and try to sync from another node.
This will make it more likely for a node to switch sync sources when they are at similar optimes, because it increases the chances that the node thinks it is behind the other node.