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

$out on secondary node can produce incorrect results if primary steps down

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • ALL

      1. $out starts on a secondary. It creates a `temp` collection and starts writing to it.
      2. Election happens and a new primary steps up. On stepup `temp` collections are dropped.
      3. $out on the secondary continues running and will start targeting upcoming inserts to the new primary.
      4. Since the `temp` collection has been dropped on step (2), the write at (3) will implicitly recreate it.
      5. $out finishes successfully, but documents written before step (2) are missing.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: