CollectionCloner fails when a collection is dropped and re-created between getMores

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Replication
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If a collection is dropped then immediately re-created on the primary while another node is doing an initial sync of that collection, the initial sync will fail with a CursorNotFoundError

      This is because when a collection is dropped, we delete the cursors completely, so we don't know why the cursor was killed.

      Possible fixes:

      Include uuid of collection in cursor objects; check existence of uuid (instead of or in addition to namespace) to return a CollectionDropped error.

      Keep killed cursors around for some length of time (or until the cursor is used), marked to say they were killed because the collection was dropped.

              Assignee:
              [DO NOT USE] Backlog - Replication Team
              Reporter:
              Matthew Russotto
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: