[SERVER-59647] Enhance testing regarding inserting documents at the maximum bson size Created: 27/Aug/21  Updated: 29/Oct/23  Resolved: 24/Nov/21

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

Type: Improvement Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Daniel Gottlieb (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

The goal is to have more explicit regression testing around code that makes copies of documents under the hood which are typically enveloped, thus creating a nominally larger BSONObj write than the original document. We want to make sure we properly allow these larger internal writes to succeed such that the contract provided to clients of MongoDB doesn't change based on whether certain features are enabled.

Cases to be exercised by this ticket:

  • Writes that succeed on a standalone must also succeed when replication is enabled (the document is written to the oplog).
  • Writes that succeed on a replica set, must also succeed when performing a retryable write.
    • Case 1: An image may be written to the oplog (in a document separate from the oplog entry for replicating)
    • Case 2: An image may be written to config.image_collection.


 Comments   
Comment by Githook User [ 24/Nov/21 ]

Author:

{'name': 'Daniel Gottlieb', 'email': 'daniel.gottlieb@mongodb.com', 'username': 'dgottlieb'}

Message: SERVER-59647: Test maximum client document size thresholds specfically for retryable findAndModify.
Branch: master
https://github.com/mongodb/mongo/commit/8038337502c8ebde9ceeb7a3eae2f93e2e1235d1

Comment by Andy Schwerin [ 30/Aug/21 ]

I think it's OK to focus this testing on documents that are up against our documented size limit. I wouldn't try to get clever deducing what the effective size limit is.

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