[SERVER-54026] Mongo shell does not retain error code when generating JavaScript exception Created: 25/Jan/21  Updated: 19/Jun/23  Resolved: 19/Jun/23

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

Type: Bug Priority: Major - P3
Reporter: Ali Mir Assignee: [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
Resolution: Won't Do Votes: 0
Labels: sdp-backlog-purge
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-54184 Check for error message when ignoring... Closed
related to SERVER-78219 Complete TODO listed in SERVER-54026 Backlog
Assigned Teams:
Server Development Platform
Operating System: ALL
Participants:
Linked BF Score: 20

 Description   

BF-19854 seems to have failed because an error thrown by the mongo shell does not contain an error code (the error is thrown here, and we check for the error code explicitly here). It looks like we only preserve the errmsg here. We should be including the error code as well.

As a temporary fix for the BF, we filed SERVER-54184. This change should eventually be removed when this ticket (SERVER-54026) is completed (TODO here).

Assigning this to STM, as I'm under the impression that the shell is owned by them. Feel free to reassign if it makes sense!



 Comments   
Comment by Alex Neben [ 19/Jun/23 ]

This has been identified as work that the SDP team won't do in the near term. Please reopen with a comment if you feel this work should be reprioritized and explain why.

Comment by Steven Vannelli [ 10/May/22 ]

Moving this ticket to the Backlog and removing the "Backlog" fixVersion as per our latest policy for using fixVersions.

Comment by Brooke Miller [ 26/Jan/21 ]

We've deiced to put this on STM's backlog for now. If replication would like to get to this sooner, please feel free to re-assign it.

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