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

NamespaceString::isNamespaceAlwaysUnsharded is not up-to-date with new system config collections

    • Fully Compatible
    • ALL
    • Sharding 2021-03-22

      The NamespaceString::isNamespaceAlwaysUnsharded utility is used internally by the Sharding catalog system in order to skip shard version checks for paths which are 100% known to be internal and where the callers are not prepared to handle a StaleConfig exception.

      This however requires that it is kept up-to-date with new systems collections which get added and currently it lacks some of the new ones that were added, such as kShardingDDLCoordinatorsNamespace and kReshardingApplierProgressNamespace.

      As part of this ticket we should invert the condition so that it doesn't require every new system namespace to be explicitly added, but rather to include all of them, except for config.system.sessions.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: