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

Fix DispatchShardPipelineTest to correctly mock an error response from a shard

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc8, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Query 2020-06-01
    • 0

      The test attempts to mock a non-OK status from a remote, however the actual result is an error in the scheduling of the remote command not an error from the remote itself. As of SERVER-46255, if the remote command fails the first case then we will attempt to schedule a _killOperations cleanup. The test does not explicitly handle the cleanup, which can result in an invariant if the async cleanup attempts to run after the fixture is destroyed.

            Assignee:
            ted.tuckman@mongodb.com Ted Tuckman
            Reporter:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: