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

Fix DispatchShardPipelineTest to correctly mock an error response from a shard

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.4.0-rc8, 4.7.0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Query 2020-06-01
    • 0

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: