Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-16362

[SERVER] Investigate changes in SERVER-79724: Get rid of the AggregationTargeter::TargetingPolicy::kPassthrough and the entire “passthrough” code path in agg

    XMLWordPrintableJSON

Details

    • 3

    Description

      Original Downstream Change Summary

      This patch changes shard targeting aggregation to no longer have a special case for unsharded collections (that is, aggregate command requests that target an unsharded collection use the same path as those which target a sharded collection). The effect of this is mostly invisible to the user, except for explain output, which in the case of an unsharded collection will put the output under the 'shards' field (previously, this was not done).

      Another effect of this is that in $search against a sharded cluster, we will call 'planShardedSearch' for an unsharded collection.

      Description of Linked Ticket

      This code path should be unnecessary if the kAnyShard code path can handle all the cases with unsharded collections and route accordingly.

      • Eliminate LiteParsedPipeline::allowedToPassthroughFromMongos() and LiteParsedDocumentSource::allowedToPassthroughFromMongos()
      • Delete runPipelineOnPrimaryShard()

      Attachments

        Activity

          People

            caleb.thompson@mongodb.com Caleb Thompson
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 weeks, 2 days ago