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

Avoid explicit callers of ChunkManager::dbPrimary() when doing shard targeting in agg code

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • None
    • None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2023-10-16, QE 2023-10-30, QE 2023-11-13
    • 105

    Description

      Fix getTargetedShardsForQuery() to route using the routing table whenever it is available 

      Caller related to determining whether to split the pipeline should be handled when we get rid of the kPrimaryShard host type requirement

      Callers in establishShardCursors()

      Calculating the nShards statistic

      Agg code which is contacting the primary shard over the wire in order to get the UUID and collation associated with an unsharded collection.

      Note that some of these callers MAY need to stick around until after we cut a branch for 8.0 as we may still need to rely on the notion of db primary in some cases if the FCV is NOT 8.0.

      Attachments

        Activity

          People

            mihai.andrei@mongodb.com Mihai Andrei
            mihai.andrei@mongodb.com Mihai Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: