<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:54:15 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-1291] [Update] : the result &quot;updatedExisting&quot; is not correct</title>
                <link>https://jira.mongodb.org/browse/JAVA-1291</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;I am using MongoDB 2.6.1 and mongo java driver 2.12.1.&lt;/p&gt;

&lt;p&gt; When I use function &#8220;db.update(arg..)&#8221; to update a nonexistent document, the result is &#8220;&lt;/p&gt;
{ &quot;serverUsed&quot; : &quot;localhost:27017&quot; , &quot;ok&quot; : 1 , &quot;n&quot; : 0 , &quot;updatedExisting&quot; : true}
&lt;p&gt;&#8221;, the &#8220;updatedExisting&#8221; is true , this is incorrect.&lt;/p&gt;

&lt;p&gt;  When I use mongo java driver 2.11.3, the result is correct.&lt;/p&gt;</description>
                <environment></environment>
        <key id="143445">JAVA-1291</key>
            <summary>[Update] : the result &quot;updatedExisting&quot; is not correct</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="3">Duplicate</resolution>
                                        <assignee username="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="Rambo">Dong [X]</reporter>
                        <labels>
                    </labels>
                <created>Mon, 23 Jun 2014 02:49:39 +0000</created>
                <updated>Thu, 15 Oct 2015 18:46:11 +0000</updated>
                            <resolved>Mon, 23 Jun 2014 08:55:51 +0000</resolved>
                                    <version>2.12.1</version>
                                                    <component>Write Operations</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="632160" author="rambo" created="Tue, 24 Jun 2014 01:15:16 +0000"  >&lt;p&gt;Ok, I got it. Thank you.&lt;/p&gt;</comment>
                            <comment id="631093" author="ross@10gen.com" created="Mon, 23 Jun 2014 08:57:19 +0000"  >&lt;p&gt;In the meantime please check the &lt;tt&gt;&quot;n&quot;&lt;/tt&gt; value is greater than zero to ensure there was an update.&lt;/p&gt;</comment>
                            <comment id="631090" author="ross@10gen.com" created="Mon, 23 Jun 2014 08:55:51 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=Rambo&quot; class=&quot;user-hover&quot; rel=&quot;Rambo&quot;&gt;Rambo&lt;/a&gt; this is a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1287&quot; title=&quot;WriteResult.isUpdateOfExisting reports wrong value running against MongoDB 2.6&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1287&quot;&gt;&lt;del&gt;JAVA-1287&lt;/del&gt;&lt;/a&gt;. A fix has been committed and it will be released in the next release of 2.12.x&lt;/p&gt;</comment>
                            <comment id="630959" author="rambo" created="Mon, 23 Jun 2014 03:03:04 +0000"  >&lt;p&gt;java driver 2.12.2 also have this issue.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="46233" name="UpdateTest.java" size="1067" author="Rambo" created="Mon, 23 Jun 2014 02:49:39 +0000"/>
                    </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|hrzx9r:</customfieldvalue>

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