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

Add a clean up procedure to the create collection coordinator

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: 7.0.1, 7.1.0-rc3
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v7.1, v7.0
    • Sharding EMEA 2023-10-02, Sharding EMEA 2023-10-16, Sharding EMEA 2023-10-30
    • 27

      The current implementation of the create collection coordinator does not guarantee a clean exit when receiving a non-retriable error. We are doing a best effort to release the critical section, without any guarantee that it is going to succeed (onError from create_collection_coordinator.cpp).

      The goal of this ticket is to add a new clean up procedure on abort that guarantees that before exiting the create collection we will, at least, release the critical section and possibly remove orphaned collections on the participants.

      This work is similar to what the move primary coordinator introduced:

            Assignee:
            pol.pinol@mongodb.com Pol Pinol
            Reporter:
            pol.pinol@mongodb.com Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: