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

Creating a collection on standalone node that was part of a replica set may lead to fassert

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Replication

      If the following sequence of events occurs:

      1. Node n in replica set is restarted as standalone
      2. User creates a replicated collection on n
      3. n rejoins the replica set

      In this case, the collection created on n in standalone mode would have a different UUID compared to the rest of the replica set. As a result, any subsequent operations on that collection would lead to an fassert.

      To help alleviate this, one idea is require an explicit UUID when creating this new collection, if the node is currently in standalone mode but was previously part of a replica set.

      Alternatively, we can add warning logs when the node attempts to create replicated collections in standalone mode.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            xuerui.fa@mongodb.com Xuerui Fa
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: