[SERVER-51602] writeValueToStream() should truncate large strings and large BinData values Created: 14/Oct/20  Updated: 29/Oct/23  Resolved: 22/Oct/20

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

Type: Task Priority: Major - P3
Reporter: Drew Paroski Assignee: Melodee Li
Resolution: Fixed Votes: 0
Labels: qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-50319 [SBE] Implement truncation of large v... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2020-10-19, Query 2020-11-02
Participants:

 Description   

The goals of this task are as follows:

  1. Update writeValueToStream() to actually print out the contents of a bsonBinData (instead of just printing out "---===*** bsonBinData ***===—"), similar to what BSONElement::toString() does.
  2. Update writeValueToStream() to truncate StringBig, bsonString, and bsonBinData values, similar to what BSONElement::toString() does.
  3. If appropriate, add a unittest to test out using writeValueToStream() to print out StringSmall, StringBig, bsonString, and bsonBinData values.

 



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

Author:

{'name': 'Melodee Li', 'email': 'melodeeli98@gmail.com', 'username': 'melodeeli98'}

Message: SERVER-51602 writeValueToStream() should truncate large strings and large BinData values
Branch: master
https://github.com/mongodb/mongo/commit/1d5cdb9f47bb6e229922a22cee09fa317c8c5dc4

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