Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-62

Server-side user exception for a multi update is swallowed by Java Driver

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 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:

      { asset_id: 4711 }

      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.

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            nschmuck Niko Schmuck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: