[SERVER-67285] Provide context to errorCodeToStatus() Created: 14/Jun/22  Updated: 29/Oct/23  Resolved: 10/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Reo Kimura (Inactive) Assignee: Reo Kimura (Inactive)
Resolution: Fixed Votes: 0
Labels: auto-reverted
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-70362 RHEL 9.0 ARM Build Errors Closed
Problem/Incident
Related
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2022-07-11, Service Arch 2022-07-25, Service Arch 2022-08-08, Service Arch 2022-08-22, Service Arch 2022-09-05, Service Arch 2022-09-19, Service Arch 2022-10-03, Service Arch 2022-10-17
Participants:
Linked BF Score: 180

 Description   

It's currently difficult to determine what is behind errors translated by errorCodeToStatus() without knowing where said function was called. Augment the function to accept a string to be attached to the outputted Status' reason member and update calls to it.



 Comments   
Comment by Githook User [ 10/Oct/22 ]

Author:

{'name': 'Reo Kimura', 'email': 'reo.kimura@mongodb.com', 'username': 'rkimura21'}

Message: SERVER-67285 Provide context to errorCodeToStatus()
Branch: master
https://github.com/mongodb/mongo/commit/9d5bb60d991c246700db2dc1d619b7d72dcaf7e4

Comment by xgen-buildbaron-user [ 04/Oct/22 ]

Ticket re-opened due to revert. ssl began a consistent failure of jstests\ssl\ssl_alert_reporting.js

Comment by Githook User [ 04/Oct/22 ]

Author:

{'name': 'auto-revert-processor', 'email': 'dev-prod-dag@mongodb.com'}

Message: Revert "SERVER-67285 Provide context to errorCodeToStatus()"

This reverts commit a14665e02e841e43d2bc057e004aeacf0c01c719.
Branch: master
https://github.com/mongodb/mongo/commit/2269f512a48251749ff669cf42ef428cb5920d61

Comment by Githook User [ 03/Oct/22 ]

Author:

{'name': 'Reo Kimura', 'email': 'reo.kimura@mongodb.com', 'username': 'rkimura21'}

Message: SERVER-67285 Provide context to errorCodeToStatus()
Branch: master
https://github.com/mongodb/mongo/commit/a14665e02e841e43d2bc057e004aeacf0c01c719

Generated at Thu Feb 08 06:07:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.