Simplify create collection coordinator check phase

XMLWordPrintableJSON

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

      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
            Reporter:
            Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: