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

Support collection rename in tenant migrations

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Serverless
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      If a donor collection is renamed during a tenant migration, the recipient aborts the migration. Possible mechanism:

      1. Recipient opens cursor on donor collection by UUID.
      2. Recipient clones some documents.
      3. Renaming the collection on the donor kills the cursor.
      4. The recipient considers the error retryable, and opens a new cursor on the renamed collection (by the same UUID).
      5. Using the new cursor, the recipient begins cloning from the beginning.
      6. The recipient tries to insert the same first document, generating a DuplicateKeyError.

      I'm not sure this is the correct diagnosis. And, once the DuplicateKeyError is fixed, make sure the recipient ends up with a collection that is properly named, and does not have a collection with the old name.

            Assignee:
            backlog-server-serverless [DO NOT USE] Backlog - Server Serverless (Inactive)
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: