[SERVER-48320] Fix DispatchShardPipelineTest to correctly mock an error response from a shard Created: 20/May/20  Updated: 29/Oct/23  Resolved: 26/May/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.0-rc8, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Nicholas Zolnierz Assignee: Ted Tuckman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Query 2020-06-01
Participants:
Linked BF Score: 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.



 Comments   
Comment by Githook User [ 29/May/20 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-48320 Fix DispatchShardPipelineTest to correctly mock an error response from a shard

(cherry picked from commit 93ce466207eb2a38d47120901848c62c7bf85d58)
Branch: v4.4
https://github.com/mongodb/mongo/commit/757249bb76d874735e9d7c97a73f33f3818747f6

Comment by Githook User [ 21/May/20 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-48320 Fix DispatchShardPipelineTest to correctly mock an error response from a shard
Branch: master
https://github.com/mongodb/mongo/commit/93ce466207eb2a38d47120901848c62c7bf85d58

Comment by Githook User [ 21/May/20 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-48320 Fix DispatchShardPipelineTest to correctly mock an error response from a shard
Branch: master
https://github.com/mongodb/mongo/commit/93ce466207eb2a38d47120901848c62c7bf85d58

Generated at Thu Feb 08 05:16:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.