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

Make sharded $lookup queries run on non-primary shards able to target the primary shard

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Query Optimization 2021-07-26

      After SERVER-38728, when a $lookup query is run on a mongod, and the collection is unsharded, we'll assume that we can get the correct results by doing a local read. However, if the mongod is not the primary shard, this will lead to us returning incorrect (empty) results. Instead, we should add logic to send the query to the primary shard.

            Assignee:
            katherine.wu@mongodb.com Katherine Wu (Inactive)
            Reporter:
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: