Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-17123

Always stop background sync thread when we become primary

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0-rc8, 3.1.0
    • 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.

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: