[SERVER-86225] Fix doc sequences for bulkWrite Created: 05/Feb/24  Updated: 08/Feb/24  Resolved: 08/Feb/24

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

Type: Bug Priority: Critical - P2
Reporter: Sean Zimmerman Assignee: Sean Zimmerman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2024-02-19
Participants:

 Description   

This code is incorrect and will crash for bulkWrites done with document sequences. We may not always be able to fit all the documents into a BSONObj due to doc sequencing. We should catch this error and run the function with an empty BSONObj.



 Comments   
Comment by Githook User [ 07/Feb/24 ]

Author:

{'name': 'seanzimm', 'email': '102551488+seanzimm@users.noreply.github.com', 'username': 'seanzimm'}

Message: SERVER-86225: Fix BSONObjectTooLarge error in bulkWrite (#18754)

GitOrigin-RevId: 0f276120f4c56248ce532f9e817f83b04525d941
Branch: master
https://github.com/mongodb/mongo/commit/2b5f3801c208907f7575a586be499035f123dc61

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