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

rollbackViaRefetch should use UUID when creating a collection during upsert

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • None
    • Replication
    • ALL
    • Repl 2021-01-25

    Description

      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.

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: