[SERVER-42239] Add support for extraInfo in failCommand Created: 15/Jul/19  Updated: 29/Oct/23  Resolved: 29/Jan/20

Status: Closed
Project: Core Server
Component/s: Internal Code, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.3.3

Type: Improvement Priority: Major - P3
Reporter: Mira Carey Assignee: Amirsaman Memaripour
Resolution: Fixed Votes: 0
Labels: neweng, save-for-sam
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-44466 Add "errorDocument" field to failComm... Closed
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2020-01-27, Service Arch 2020-02-10
Participants:

 Description   

It's not currently possible to use failCommand to set a command to fail if the desired code requires extra info. We should allow callers of failCommand to pass extraInfo, which would allow failCommand to mimic all error conditions (instead of just those conditions which don't have extraInfo).



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

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@10gen.com'}

Message: SERVER-42239 Add support for extraInfo in failCommand
Branch: master
https://github.com/mongodb/mongo/commit/5fd95451f78ad667eccca8d4934873529a35e746

Generated at Thu Feb 08 04:59:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.