-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 3.0.0-rc7
-
Component/s: Replication
-
None
-
Fully Compatible
-
ALL
-
0
If a node is primary for a very short time the bgsync thread may never notice it is primary and stop() itself. If that doesn't happen, then it will never call start() when it becomes secondary again, and thus _lastOpFetched will hold the last op it received the last time it was secondary, missing any ops that were written during the brief window it was primary.