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

Simplify create collection coordinator check phase

    • Fully Compatible
    • v5.0
    • Sharding EMEA 2021-05-31

      The initial checks for the create collection are performed in the check phase of the coordinator. The phase is executed through the _executePhase helper that persist the state document on disk even though this is not necessary.
      In fact this phase doesn't perform any persisted action and if it fail we can just release the coordinator.

      The proposed improvement is to execute these checks outside of a persisted phase, this would save one majority committed write on the create collection coordinator.

            Assignee:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: