<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:29:33 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-32208] Remove retrying of OperationFailed in auto_retry_on_network_error.js</title>
                <link>https://jira.mongodb.org/browse/SERVER-32208</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;There used to be a case where a write command swallowed the original error code and replaced it with OperationFailed, but we believe that has been fixed in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-33542&quot; title=&quot;Using maxTime() on MongoDB 3.4 and 3.6 does not yield the same error code&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-33542&quot;&gt;&lt;del&gt;SERVER-33542&lt;/del&gt;&lt;/a&gt;. This ticket has been left open to track the work to remove the special case for it &lt;a href=&quot;https://github.com/mongodb/mongo/blob/9c9b303b1a/jstests/libs/override_methods/auto_retry_on_network_error.js#L149-L152&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;h4&gt;&lt;a name=&quot;OriginalDescription&quot;&gt;&lt;/a&gt;Original Description&lt;/h4&gt;
&lt;p&gt;Similarly to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-31730&quot; title=&quot;PlanExecutor::executePlan() should preserve error code from getNext() failure&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-31730&quot;&gt;&lt;del&gt;SERVER-31730&lt;/del&gt;&lt;/a&gt;, there are commands that swallow plan executor errors (like &lt;tt&gt;InterruptedDueToReplStateChange&lt;/tt&gt;) and instead return &lt;tt&gt;ErrorCodes::OperationFailed&lt;/tt&gt;. This interferes with mongos retry logic and the retry logic in the jscore and concurrency continuous stepdown suites.&lt;/p&gt;

&lt;p&gt;These are the commands I&apos;ve seen that definitely have this problem, there may be more though:&lt;br/&gt;
 &lt;a href=&quot;https://github.com/mongodb/mongo/blob/b732abe6b1/src/mongo/db/commands/find_cmd.cpp#L353-L364&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;find&lt;/a&gt;,&lt;br/&gt;
 &lt;a href=&quot;https://github.com/mongodb/mongo/blob/b732abe6b1/src/mongo/db/commands/find_and_modify.cpp#L118-L132&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;findAndModify&lt;/a&gt;,&lt;br/&gt;
 &lt;a href=&quot;https://github.com/mongodb/mongo/blob/b732abe6b1/src/mongo/db/commands/distinct.cpp#L247-L257&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;distinct&lt;/a&gt;,&lt;br/&gt;
 &lt;a href=&quot;https://github.com/mongodb/mongo/blob/b732abe6b1/src/mongo/db/commands/geo_near_cmd.cpp#L300-L310&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;geoNear&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Grepping for &quot;executor error&quot; turns up a few more places where this could be an issue, since it seems like this logic has been copied across a few commands.&lt;/p&gt;</description>
                <environment></environment>
        <key id="469366">SERVER-32208</key>
            <summary>Remove retrying of OperationFailed in auto_retry_on_network_error.js</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="backlog-server-cluster-scalability">Backlog - Cluster Scalability</assignee>
                                    <reporter username="jack.mulrow@mongodb.com">Jack Mulrow</reporter>
                        <labels>
                            <label>max-triage</label>
                            <label>neweng</label>
                            <label>open_todo_in_code</label>
                    </labels>
                <created>Thu, 7 Dec 2017 19:29:55 +0000</created>
                <updated>Tue, 12 Dec 2023 15:48:37 +0000</updated>
                                                                            <component>Querying</component>
                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1864295" author="jack.mulrow" created="Fri, 13 Apr 2018 21:53:55 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=charlie.swanson&quot; class=&quot;user-hover&quot; rel=&quot;charlie.swanson&quot;&gt;charlie.swanson&lt;/a&gt; That sounds good to me.&lt;/p&gt;</comment>
                            <comment id="1864284" author="charlie.swanson" created="Fri, 13 Apr 2018 21:46:07 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jack.mulrow&quot; class=&quot;user-hover&quot; rel=&quot;jack.mulrow&quot;&gt;jack.mulrow&lt;/a&gt; it looks like we actually resolved this under &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-33542&quot; title=&quot;Using maxTime() on MongoDB 3.4 and 3.6 does not yield the same error code&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-33542&quot;&gt;&lt;del&gt;SERVER-33542&lt;/del&gt;&lt;/a&gt;, though we didn&apos;t undo your special retry logic. I think we should adapt this ticket to just be about removing that logic - is it okay if I do that and move it to the sharding backlog?&lt;/p&gt;</comment>
                            <comment id="1746866" author="jack.mulrow" created="Fri, 8 Dec 2017 15:44:03 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=charlie.swanson&quot; class=&quot;user-hover&quot; rel=&quot;charlie.swanson&quot;&gt;charlie.swanson&lt;/a&gt; I don&apos;t know if there are any existing BFs related to this, I only ran into it locally when I was writing the new &lt;tt&gt;retryable_writes_jscore_stepdown_passthrough&lt;/tt&gt; for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-31194&quot; title=&quot;Add a version of retryable_writes_jscore_passthrough.yml with stepdowns&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-31194&quot;&gt;&lt;del&gt;SERVER-31194&lt;/del&gt;&lt;/a&gt; which runs the jscore tests against a replica set while continuously stepping down the primary. I was seeing failures like these pretty frequently, but I was able to add &lt;a href=&quot;https://github.com/mongodb/mongo/blob/9c9b303b1a/jstests/libs/override_methods/auto_retry_on_network_error.js#L149-L152&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;special logic to retry them&lt;/a&gt;, so for our current tests this isn&apos;t really a pressing issue.&lt;/p&gt;</comment>
                            <comment id="1746816" author="charlie.swanson" created="Fri, 8 Dec 2017 15:10:59 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jack.mulrow&quot; class=&quot;user-hover&quot; rel=&quot;jack.mulrow&quot;&gt;jack.mulrow&lt;/a&gt; can you link us to some instances of these failures so we can know how often this is a problem to help with triaging? I&apos;m aware of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-31730&quot; title=&quot;PlanExecutor::executePlan() should preserve error code from getNext() failure&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-31730&quot;&gt;&lt;del&gt;SERVER-31730&lt;/del&gt;&lt;/a&gt; and the associated failures, are there more?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="503439">SERVER-33542</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="451425">SERVER-31730</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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="26583"><![CDATA[Cluster Scalability]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 8 Dec 2017 15:10:59 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 43 weeks, 5 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>dbeng-pm-bot</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 43 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-cluster-scalability</customfieldvalue>
            <customfieldvalue>charlie.swanson@mongodb.com</customfieldvalue>
            <customfieldvalue>jack.mulrow@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htlsnb:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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_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|htlerb:</customfieldvalue>

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