[SERVER-76187] QueryAnalysisWriter can repeatedly fail with BSONObjectTooLarge if there are too many sampled query documents to insert at once Created: 17/Apr/23  Updated: 29/Oct/23  Resolved: 26/Apr/23

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

Type: Bug Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Sprint: Sharding NYC 2023-05-01
Participants:

 Description   

This showed up in one of the stress test in SERVER-68762. There is logic for limiting the total size of documents in each insert command (here). It is unclear why it could still execeed the limit and hit a BSONObjectTooLarge error.



 Comments   
Comment by Githook User [ 26/Apr/23 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-76187 Decrease the limit for the total BSONObj size for documents in an insert batch agaisnt collections storing sampled queries and diffs

(cherry picked from commit 3c153350134076d8ea1fbc43f40feda55eec7c0a)
Branch: v7.0
https://github.com/mongodb/mongo/commit/8c5bed51dea6f39c1a6b52ee3293fa07297a93b7

Comment by Githook User [ 26/Apr/23 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-76187 Decrease the limit for the total BSONObj size for documents in an insert batch agaisnt collections storing sampled queries and diffs
Branch: master
https://github.com/mongodb/mongo/commit/3c153350134076d8ea1fbc43f40feda55eec7c0a

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