[GODRIVER-510] Documents larger than the MaxDocumentSize/MaxBSONObjectSize should cause error on InsertOne/InsertMany Created: 26/Jul/18  Updated: 28/Oct/23  Resolved: 27/Jul/18

Status: Closed
Project: Go Driver
Component/s: Command & Dispatch
Affects Version/s: 0.0.10
Fix Version/s: 0.0.11

Type: Bug Priority: Critical - P2
Reporter: Kristofer Brandow (Inactive) Assignee: Kristofer Brandow (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When a document larger than MaxDocumentSize/MacBSONObjectSize is inserted, the driver enters an infinite loop. An error should be returned instead.



 Comments   
Comment by Githook User [ 27/Jul/18 ]

Author:

{'name': 'Kris Brandow', 'email': 'kris@mongodb.com', 'username': 'skriptble'}

Message: Ensure too large documents cause error on insert

GODRIVER-510

Change-Id: Ief2fa6b04df3dd98e7861b47aa3208db780a093d
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/cadedb1db0bf075f86de750cbc54201bb2463830

Comment by Kristofer Brandow (Inactive) [ 26/Jul/18 ]

Code Review: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/420581.

Generated at Thu Feb 08 08:34:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.