<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51:25 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-62] Server-side user exception for a multi update is swallowed by Java Driver </title>
                <link>https://jira.mongodb.org/browse/JAVA-62</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;I upgraded my MongoDB server from 1.1.0 to 1.2.0&lt;br/&gt;
and suddenly the update operation:&lt;/p&gt;

&lt;p&gt;dbColl.update(query, (DBObject) entry, true, true);&lt;/p&gt;

&lt;p&gt;is not any longer working:&lt;/p&gt;

&lt;p&gt;Mon Dec 14 20:44:57 User Exception multi update only works with $ operators&lt;br/&gt;
Mon Dec 14 20:44:57  s7meta_gemini.medix999  Caught Assertion update, continuing&lt;br/&gt;
Mon Dec 14 20:44:57 update s7meta_gemini.medix999  query: &lt;/p&gt;
{ asset_id: 4711 }
&lt;p&gt; exception userassert:multi update only works with $ operators 4ms&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;</description>
                <environment>Mac OS 10.6.2, Java 1.6, Mongo Server 1.2.0</environment>
        <key id="11001">JAVA-62</key>
            <summary>Server-side user exception for a multi update is swallowed by Java Driver </summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="eliot">Eliot Horowitz</assignee>
                                    <reporter username="nschmuck">Niko Schmuck</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 Dec 2009 14:54:39 +0000</created>
                <updated>Wed, 13 Jan 2010 15:51:03 +0000</updated>
                            <resolved>Mon, 14 Dec 2009 15:03:51 +0000</resolved>
                                    <version>1.0</version>
                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="11363" author="eliot" created="Mon, 14 Dec 2009 15:03:51 +0000"  >&lt;p&gt;by default, all write operations are fire and forget.&lt;br/&gt;
if you want errors thrown, you need to run&lt;br/&gt;
DBCollection.setWriteConcern( DB.WriteConcern.STRICT )&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrhdfz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14978</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>