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

Fix race in graphLookup execution test

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • 145

      This test in lookup_unionWith_subpipeline_local_read.js assumes that the primary shard will execute a subpipeline of the $graphLookup first. But if the non-primary shard executes a subpipeline first, it targets the primary which must do a refresh. Then, by the time the primary shard executes its first subpipeline, it already has the relevant information about the collection and doesn't need to target shards.

      We should change the test to allow for both cases and audit for other related issues in the same file.

            Assignee:
            hana.pearlman@mongodb.com Hana Pearlman
            Reporter:
            hana.pearlman@mongodb.com Hana Pearlman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: