[SERVER-4779] validation failure on one document of a multi update terminates the update leaving remaining documents unmodified Created: 25/Jan/12  Updated: 29/Feb/12  Resolved: 25/Jan/12

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

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Test (test push pending)

t = db.jstests_updatej;
t.drop();
 
t.save( {a:[]} );
t.save( {a:1} );
t.save( {a:[]} );
 
t.update( {}, {$push:{a:2}}, false, true );
assert.eq( 2, t.count( {a:2} ) );



 Comments   
Comment by auto [ 07/Feb/12 ]

Author:

{u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}

Message: SERVER-4779 update test to characterize expected behavior
Branch: master
https://github.com/mongodb/mongo/commit/4ad6e3c6b0e08a877cccf476ffa0c7fa694c2452

Comment by auto [ 07/Feb/12 ]

Author:

{u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}

Message: SERVER-4779 test
Branch: master
https://github.com/mongodb/mongo/commit/366b3dbd3b27890ae23814400b89053e5d5b120a

Comment by Eliot Horowitz (Inactive) [ 25/Jan/12 ]

stopping on first error is expected

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