[SERVER-77950] Have bulkWrite truncate large error messages Created: 09/Jun/23  Updated: 29/Oct/23  Resolved: 13/Jun/23

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

Type: Task Priority: Trivial - P5
Reporter: Sean Zimmerman Assignee: Sean Zimmerman
Resolution: Fixed Votes: 0
Labels: milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Repl 2023-06-26
Participants:

 Description   

Currently bulkWrite always passes 0 for numErrors into write_ops_exec::generateErrors

This means that we will never truncate future errors >1MB which can eat up a lot of cursor memory. We should pass in a proper error count here



 Comments   
Comment by Githook User [ 13/Jun/23 ]

Author:

{'name': 'seanzimm', 'email': 'sean.zimmerman@mongodb.com', 'username': 'seanzimm'}

Message: SERVER-77950: Truncate large errors in bulkWrite
Branch: master
https://github.com/mongodb/mongo/commit/317e4478a31d5013802c9abbdb9a4f42cebb53fe

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