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

Two Phase Drops: add list of drop-pending collections to ReplicationCoordinator

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.8
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • Repl 2017-05-29

      With 2-phase drops, collections are not physically dropped (on all nodes) until the commit point advances past the optime when the collection drop was first requested on the primary. Since the ReplicationCoordinator maintains the commit point, it is a logical choice for a location to hold this list of drop-pending collections.

      This list is updated when:

      1. At server startup, we scan all non-local databases for collections with a drop-pending namespace (see SERVER-29251).
      2. When processing a collection drop command in a replicated setting, we add the drop-pending namespace after renaming the collection and logging the drop request in the oplog.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: