-
Type: Bug
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: 3.2.1
-
Component/s: Write Ops
-
None
-
ALL
-
Calling getlasterror after inserting a 262144-byte document without an _id via OP_INSERT fails with code 1 and the following message:
Collection::insertDocument got document without _id for ns:JavaDriverTest.com.mongodb.operation.InsertOperationSpecification
A 262143-byte document succeeds, and so does a 3.0 server.
I don't see this as particularly severe because most drivers will automatically add an _id field to all documents before insertion.
- duplicates
-
SERVER-22167 Failed to insert document larger than 256k
- Closed