[SERVER-12393] can't turn off insert validation for shell/drivers bulk api Created: 17/Jan/14  Updated: 11/Jul/16  Resolved: 17/Jan/14

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 2.5.5

Type: Bug Priority: Major - P3
Reporter: Greg Studer Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-10987 Disallow inserting documents with inv... Backlog
is related to SERVER-10547 Do lightweight insert check (not deep... Closed
Operating System: ALL
Participants:

 Description   

Inserts still rely on clients to validate nested fields - the shell must maintain this validation even in the bulk api case. The server itself will not validate nested fields for correctness.

Ideally these errors would be reported as write errors to maintain api consistency, but this isn't totally critical since it is safe to fail when building a batch.

Recommended solution is to have per-DBCollection validate function for each write type, which can be overridden for tests.



 Comments   
Comment by Githook User [ 17/Jan/14 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-12393 can't turn off insert validation for shell/drivers bulk api
Branch: master
https://github.com/mongodb/mongo/commit/50b47b93b3bb63e609c55bd45127f49e60919e12

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