-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
None
-
Fully Compatible
-
v4.0, v3.6
-
Repl 2018-07-02
-
15
checkOplogs calls awaitReplication() for live nodes before the oplog check, but _callIsMaster() is called again and resets the _liveNodes before the check. The live nodes could be different then. Waiting for all nodes to be in Down, Primary, Secondary or Arbiter state at the very beginning of checkOplogs is a possible solution.