Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
1.0
-
None
-
None
-
Mac OS 10.6.2, Java 1.6, Mongo Server 1.2.0
Description
I upgraded my MongoDB server from 1.1.0 to 1.2.0
and suddenly the update operation:
dbColl.update(query, (DBObject) entry, true, true);
is not any longer working:
Mon Dec 14 20:44:57 User Exception multi update only works with $ operators
Mon Dec 14 20:44:57 s7meta_gemini.medix999 Caught Assertion update, continuing
Mon Dec 14 20:44:57 update s7meta_gemini.medix999 query:
exception userassert:multi update only works with $ operators 4ms
What really surprised me that there is no exception thrown on the Java driver level, this signals that the update was run successfully although not saved to the MongoDB. Thanks to the server log file, it turns out that I had to change the fourth parameter (multi from true to false) then the update is working fine again, I still think that a server exception should be spread to the driver level.