[SERVER-44463] insertConfigDocumentsAsRetryableWrite() incorrectly calculates BSON array overhead Created: 06/Nov/19  Updated: 29/Oct/23  Resolved: 12/Mar/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 4.0.13, 4.2.1
Fix Version/s: 4.2.6, 4.4.0-rc0, 4.0.18, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Blake Oler Assignee: Marcos José Grillo Ramirez
Resolution: Fixed Votes: 0
Labels: neweng, sharding-4.4-stabilization, sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4, v4.2, v4.0
Sprint: Sharding 2020-03-23
Participants:

 Description   

When constructing an array of BSONObjs, the BSON array overhead should be added per element. Currently, it's only added once for the entire array. This ticket is to fix that bug.



 Comments   
Comment by Githook User [ 27/Mar/20 ]

Author:

{'name': 'Marcos José Grillo Ramírez', 'username': 'm4nti5', 'email': 'marcos.grillo@mongodb.com'}

Message: SERVER-44463 insertConfigDocumentsAsRetryableWrite() incorrectly calculates BSON array overhead

(cherry picked from commit bb741a0ab1b2c80844dab55a3beecd83a8250ca4)
(cherry picked from commit 4e631f51f099790bbcd9b74ad34ecaf504ee1508)
(cherry picked from commit db7e98c79177c1bb417a756b29e771520f53d575)
Branch: v4.0
https://github.com/mongodb/mongo/commit/24efa5a2afeaad495a2317c09b229c35216a9dbe

Comment by Githook User [ 27/Mar/20 ]

Author:

{'name': 'Marcos José Grillo Ramírez', 'username': 'm4nti5', 'email': 'marcos.grillo@mongodb.com'}

Message: SERVER-44463 insertConfigDocumentsAsRetryableWrite() incorrectly calculates BSON array overhead

(cherry picked from commit bb741a0ab1b2c80844dab55a3beecd83a8250ca4)
(cherry picked from commit 4e631f51f099790bbcd9b74ad34ecaf504ee1508)
Branch: v4.2
https://github.com/mongodb/mongo/commit/db7e98c79177c1bb417a756b29e771520f53d575

Comment by Githook User [ 26/Mar/20 ]

Author:

{'email': 'marcos.grillo@mongodb.com', 'name': 'Marcos José Grillo Ramírez', 'username': 'm4nti5'}

Message: SERVER-44463 insertConfigDocumentsAsRetryableWrite() incorrectly calculates BSON array overhead

(cherry picked from commit bb741a0ab1b2c80844dab55a3beecd83a8250ca4)
Branch: v4.4
https://github.com/mongodb/mongo/commit/4e631f51f099790bbcd9b74ad34ecaf504ee1508

Comment by Githook User [ 12/Mar/20 ]

Author:

{'username': 'm4nti5', 'name': 'Marcos José Grillo Ramírez', 'email': 'marcos.grillo@mongodb.com'}

Message: SERVER-44463 insertConfigDocumentsAsRetryableWrite() incorrectly calculates BSON array overhead
Branch: master
https://github.com/mongodb/mongo/commit/bb741a0ab1b2c80844dab55a3beecd83a8250ca4

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