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

Fix race in graphLookup execution test

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Linked BF Score:
      145

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: