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

Make consistent reads to the config catalog on $listClusterCatalog

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing

      Right now, the $listClusterCatalog requires a local read concern to be able to execute the $_internalListCollections stage that runs under the hood.

      The problem is that all the following $lookup stages running against the config database also run with a local read concern, meaning the reads on the config catalog may not be consistent.

      If the reads of the config catalog are not consistent, we could potentially return wrong information to a user whenever there are DDL concurrent operations.

      Some consequences could be to return an empty list of shards for a tracked collection. It could happen, for example, when a resharding operation is running.

       

      This ticket aims to ensure $listClusterCatalog makes consistent reads on the config catalog.

            Assignee:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Reporter:
            silvia.surroca@mongodb.com Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: