[SERVER-49458] Implement error truncation for deeply nested generated errors Created: 10/Jul/20  Updated: 29/Oct/23  Resolved: 06/Oct/20

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

Type: Task Priority: Major - P3
Reporter: Mihai Andrei Assignee: Mihai Andrei
Resolution: Fixed Votes: 0
Labels: qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2020-10-05, Query 2020-10-19
Participants:

 Description   

Implement error truncation for deeply nested generated errors as described in the design document. In particular, there are two approaches to implementing this. The simplest approach is to simply call ‘validateBSON()’ on the finished error to check whether the depth is valid, and if it isn’t, discard the error and simply report ‘truncated: true’ at the top level and add a message saying ‘generated BSON was too deep’. A more involved approach would be to track the depth of the generated error and stop generating error details past a certain depth to return at least a partially complete error to the user.



 Comments   
Comment by Githook User [ 06/Oct/20 ]

Author:

{'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}

Message: SERVER-49458 Implement error truncation for deeply nested generated errors
Branch: master
https://github.com/mongodb/mongo/commit/1b63bb02fd5bb0ceda3aa9a37c581701f9597fa8

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