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

rollbackViaRefetch should use UUID when creating a collection during upsert

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Replication
    • ALL
    • Repl 2021-01-25

      RollbackViaRefetch only sets the collection namespace on a request and does not set a UUID.

      When attempting to create a collection on the rollback node during an upsert, we later hit a uassert because we are not primary and we did not pass in a UUID.

      Since the rollback node is creating a collection it sees on the new primary, it should be using the same UUID.

      Currently, the rollback attempt will fail, but is not marked unrecoverable. Subsequent rollback attempts can invariant, one example being the second rollback attempt trying to find a collection that was already dropped in the unsuccessful attempt.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: