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

Simplify create collection coordinator check phase

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • Backlog
    • 5.0.0-rc1, 5.1.0-rc0
    • None
    • Fully Compatible
    • v5.0
    • Sharding EMEA 2021-05-31

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: