[SERVER-12997] Bad error message for oversized insert Created: 03/Mar/14  Updated: 11/Jul/16  Resolved: 06/Mar/14

Status: Closed
Project: Core Server
Component/s: Usability, Write Ops
Affects Version/s: 2.6.0-rc0
Fix Version/s: 2.6.0-rc2

Type: Bug Priority: Trivial - P5
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Operating System: ALL
Participants:

 Description   

At the very least it needs an extra space. Should probably also say what the number is. Maybe include both actual size and max allowed size.

{
        "ok" : 1,
        "n" : 0,
        "writeErrors" : [
                {
                        "index" : 0,
                        "code" : 2,
                        "errmsg" : "object to insert too large16777217"
                }
        ]
}



 Comments   
Comment by Jonathan Abrahams [ 18/Mar/14 ]

redbeard0531 - Is there a test for this? If not what are the steps to reproduce, test & verify?

Comment by Githook User [ 06/Mar/14 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-12997 Better error message for oversized insert
Branch: master
https://github.com/mongodb/mongo/commit/8171071440b1944429056f4df4f32f135648a177

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