[SERVER-1133] Allow mongoimport to error rather than warn on input too large Created: 18/May/10  Updated: 12/Jul/16  Resolved: 03/Jun/10

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 1.5.1
Fix Version/s: 1.5.3

Type: New Feature Priority: Major - P3
Reporter: Doug Hudson Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

djh-lp5 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:28:05 UTC 2010 x86_64 GNU/Linux
db version v1.5.2-pre-, pdfile version 4.5
git version: 02e174be471103b58e0e5cb73d00ef71ebfb372f
sys info: Linux domU-12-31-39-06-79-A1 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41


Participants:

 Description   

When input document is too large (a row of JSON) the following is shown in the server "exception userassert:object to insert too large" but loading continues. It would be helpful to (optionally) stop loading if desired.



 Comments   
Comment by Mathias Stearn [ 03/Jun/10 ]

added --stopOnError option

Comment by auto [ 03/Jun/10 ]

Author:

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

Message: --stopOnError option to mongoimport SERVER-1133
http://github.com/mongodb/mongo/commit/a0ce62f1eab82a54cc5ca31fa5d3636a0af1c25e

Comment by Doug Hudson [ 18/May/10 ]

Server says:
Caught Assertion in insert , continuing
Tue May 18 17:23:35 insert pubmed.mesh_heading_author_count exception userassert:object to insert too large 0ms
insert , continuing

Although the import does fail soon after that with:
Assertion failure in->rdstate() == 0 tools/import.cpp 236
0x503eb6 0x50dff2 0x702662 0x6fd070 0x700e62 0x7fc93eb09c4d 0x4a6269

Generated at Thu Feb 08 02:56:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.