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

$lookup misses results when both the mongos and primary shard are unaware that an involved collection is sharded

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Aggregation Framework
    • Labels:
      None

      Description

      Found while working on test cases for SERVER-32308. Repro steps:

      1. Create unsharded local and foreign collections, inserting a few documents to each.
      2. Shard either collection through the first mongos, and ensure that the chunks are distributed across multiple shards.
      3. Restart the primary shard to reset its metadata. It now believes that both collections are unsharded.
      4. Send $lookup to a second mongos, which is unaware that either collection is sharded.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: