Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
None
-
2.5.5
-
None
-
ALL
Description
Using the MongoDB 2.4.8 shell and OP_UPDATE, I can create a nearly-16MB document by upserting:
> var sixteen = '';
|
> while (sixteen.length < (16 * 1024 * 1024 - 30)) { var x = (sixteen += 'a'); }
|
> sixteen.length
|
16777186
|
> db.collection.update({key: 1}, {$set: {x: sixteen}}, true)
|
>
|
But in nightly shell build bffe6421 with the 'update' command, this fails:
> sixteen.length
|
16777186
|
> db.collection.update({key: 1}, {$set: {x: sixteen}}, true)
|
2014-02-04T09:52:35.515-0500 Error: Converting from JavaScript to BSON failed: Object size 16777256 exceeds limit of 16777216 bytes. at src/mongo/shell/batch_api.js:347
|
Attachments
Issue Links
- is related to
-
SERVER-12305 Allow command request and response BSON objects to exceed 16MB
-
- Backlog
-