<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:00:56 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>[SERVER-2698] mongos seems to swallow &apos;No matching object found&apos; errors when running findAndModify on a sharded collection.</title>
                <link>https://jira.mongodb.org/browse/SERVER-2698</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Steps to reproduce:&lt;/p&gt;

&lt;p&gt;1. Set up a sharded system with at least two shards (in my case they are both replica sets with a primary and two secondaries)&lt;br/&gt;
2. Enable sharding on a database&lt;br/&gt;
3. Shard a collection in that database.&lt;br/&gt;
4. Insert enough data that chunks are migrated to both shards (this may not be required)&lt;br/&gt;
5. Run findAndModify querying for a document that does not exist using the shard key.&lt;/p&gt;

&lt;p&gt;Expected results:&lt;/p&gt;

&lt;p&gt;mongos returns &apos;No matching object found&apos;&lt;/p&gt;

&lt;p&gt;Actual result:&lt;/p&gt;

&lt;p&gt;mongos returns &lt;/p&gt;
{u&apos;ok&apos;: 1.0}

&lt;p&gt;This was found while investigating &lt;a href=&quot;http://jira.mongodb.org/browse/PYTHON-219&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;http://jira.mongodb.org/browse/PYTHON-219&lt;/a&gt; so the problem also exists in at least 1.7.6.&lt;/p&gt;</description>
                <environment>Linux x86_64</environment>
        <key id="15025">SERVER-2698</key>
            <summary>mongos seems to swallow &apos;No matching object found&apos; errors when running findAndModify on a sharded collection.</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="9">Done</resolution>
                                        <assignee username="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="bernie@mongodb.com">Bernie Hackett</reporter>
                        <labels>
                    </labels>
                <created>Mon, 7 Mar 2011 22:00:39 +0000</created>
                <updated>Tue, 12 Jul 2016 00:19:04 +0000</updated>
                            <resolved>Mon, 14 Mar 2011 21:56:35 +0000</resolved>
                                    <version>1.8.0-rc1</version>
                                    <fixVersion>1.8.1</fixVersion>
                    <fixVersion>1.9.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="26906" author="auto" created="Sat, 26 Mar 2011 06:09:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;behackett&apos;, u&apos;name&apos;: u&apos;behackett&apos;, u&apos;email&apos;: u&apos;bernie@10gen.com&apos;}
&lt;p&gt;Message: Fix KeyError when value isn&apos;t returned &lt;a href=&quot;https://jira.mongodb.org/browse/PYTHON-219&quot; title=&quot;KeyError in find_and_modify&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PYTHON-219&quot;&gt;&lt;del&gt;PYTHON-219&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This change works around bugs like &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2698&quot; title=&quot;mongos seems to swallow &amp;#39;No matching object found&amp;#39; errors when running findAndModify on a sharded collection.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2698&quot;&gt;&lt;del&gt;SERVER-2698&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-python-driver/commit/4e2ebbbcfc66eb8427338a8e923430a8f1971213&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-python-driver/commit/4e2ebbbcfc66eb8427338a8e923430a8f1971213&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="26041" author="auto" created="Wed, 16 Mar 2011 21:47:04 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: Better handling of sharded findAndModify output &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2698&quot; title=&quot;mongos seems to swallow &amp;#39;No matching object found&amp;#39; errors when running findAndModify on a sharded collection.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2698&quot;&gt;&lt;del&gt;SERVER-2698&lt;/del&gt;&lt;/a&gt; 180?&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0dcc19701f1f5d5b4a99be6d1f49dc189a3fb32b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0dcc19701f1f5d5b4a99be6d1f49dc189a3fb32b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="25894" author="auto" created="Mon, 14 Mar 2011 21:56:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: Better handling of sharded findAndModify output &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2698&quot; title=&quot;mongos seems to swallow &amp;#39;No matching object found&amp;#39; errors when running findAndModify on a sharded collection.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2698&quot;&gt;&lt;del&gt;SERVER-2698&lt;/del&gt;&lt;/a&gt; 180?&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2fb5c66361e9a2cfa95e28f29f40d2b19cc785e2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2fb5c66361e9a2cfa95e28f29f40d2b19cc785e2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="25462" author="behackett" created="Mon, 7 Mar 2011 22:10:37 +0000"  >&lt;p&gt;This likely doesn&apos;t matter but all the mongods are running with --dur.&lt;/p&gt;</comment>
                            <comment id="25460" author="behackett" created="Mon, 7 Mar 2011 22:03:03 +0000"  >&lt;p&gt;I should also note that the correct thing happens in a single server environment.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="15008">PYTHON-219</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 14 Mar 2011 21:56:25 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 47 weeks, 4 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 47 weeks, 4 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>bernie@mongodb.com</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp4en:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hridvr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>20901</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht0fp3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>