SERVER-96495ClosedFixed

Choosing sync source across regions doesn't take into account which node is primary

The topology of sync sources has a large impact on majority write acknowledgement. Since chaining is [enabled by default|https://github.com/mongodb/mongo/blob/4f244903852237fe3681cef5949c74a366c39d19/src/mongo/db/repl/repl_set_config.idl#L90-L92] in replica sets, we should make sure that replication automatically trends towards sync source topologies that promote lower majority write acknowledgement latencies. After SPM-1409, we try to optimize sync source topologies to make it so that per r

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
8.1.0-rc08.0.20
Components
Server components related to this issue
Replication
Labels
Tags and classification
auto-revertedrepl-shortlist