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

Create collection coordinator refreshes cached database info only if necessary

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

      In the create collection coordinator we perform an unconditional refresh of the cached database entry, to check if the database has been enabled for sharding. Since changing the "shardingEnabled" flag doesn't imply a database version change we can't rely on the versioning protocol to propagate this changes to the DSS.
      Since the flag can only be changed to true but never set back to false afterwards, if the locally chached database entry already has the flag set to true, we can skip the forced refresh.

            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: