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

Refactor lookup_unionWith_subpipeline_local_read.js to avoid asserting on exact number of local/remote reads

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v7.1
    • 113
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      lookup_unionWith_subpipeline_local_read.js is structured to execute pipelines with subpipelines in various topologies and inspect profiler entries to assert that a certain number of the subpipeline invocations where performed as remote vs local reads. However there are an increasing number of complex race conditions which affect the exact number of local vs remote reads that are done, becoming a cause of non-trivial BFs. But in the majority of cases, we really only care whether local reads were performed or not, we don't care exactly how many there were.

      The task of this ticket is to refactor the test to avoid asserting on an exact number of local/remote reads, making it more robust.

            Assignee:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: