[SERVER-52642] Status constructor must handle optional ErrorExtraInfo Created: 05/Nov/20  Updated: 29/Oct/23  Resolved: 06/Nov/20

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Pierlauro Sciarelli
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2020-11-16
Participants:

 Description   

In this Status constructor it is assumed that - if a parser exists for an ErrorCode - the extra infos associated should always be present.

However, this doesn't account for optional extra infos that can be checked with mustHaveExtraInfo



 Comments   
Comment by Githook User [ 05/Nov/20 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-52642 Status constructor must handle optional ErrorExtraInfo
Branch: master
https://github.com/mongodb/mongo/commit/2c2146ac0ae876984423c04a258e32b4c5843315

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