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

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

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.5.8
    • Replication
    • None
    • Fully Compatible
    • Repl 2017-05-29

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: