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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.1 Desired
    • Component/s: Querying
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: