<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:19:31 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-71618] Investigate non auto-retry commands on StaleConfig error</title>
                <link>https://jira.mongodb.org/browse/SERVER-71618</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We have received recently some complaints about the non-retry behaviour on &lt;tt&gt;StaleConfig&lt;/tt&gt; error when running a &lt;a href=&quot;https://github.com/10gen/mongo/blob/de3f20738731e5311d0168861dd6b5aebd9b3769/src/mongo/s/commands/cluster_count_cmd.cpp&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;count&lt;/a&gt;&#160;command.&lt;/p&gt;

&lt;p&gt;&lt;del&gt;When mongos receives a &lt;tt&gt;count&lt;/tt&gt; command, it&apos;s sending out a &lt;a href=&quot;https://github.com/10gen/mongo/blob/de3f20738731e5311d0168861dd6b5aebd9b3769/src/mongo/s/commands/cluster_count_cmd.cpp#L121&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;scatter-gather&lt;/a&gt; request to all shards owning chunks.&lt;/del&gt; &lt;del&gt;Since &lt;a href=&quot;https://github.com/10gen/mongo/blob/1256b11b0f148f8f5095ba816e18b39f814b4e3d/src/mongo/s/cluster_commands_helpers.h#L169&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;the scatter-gather utility is not retrying on StaleConfig errors&lt;/a&gt;, the &lt;tt&gt;StaleConfig&lt;/tt&gt; error is being reported to the user.&lt;/del&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;del&gt;After browsing the code, we have seen there are several commands using the same &lt;a href=&quot;https://github.com/10gen/mongo/blob/1256b11b0f148f8f5095ba816e18b39f814b4e3d/src/mongo/s/cluster_commands_helpers.cpp#L395-L409&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;scatterGatherVersionedTargetByRoutingTable&lt;/a&gt; utility, so they are likely to don&apos;t reply on &lt;tt&gt;StaleConfig&lt;/tt&gt; either.&lt;/del&gt;&lt;/p&gt;

&lt;p&gt;&lt;del&gt;The aim of this ticket is to investigate more deeply which commands are not retrying on &lt;tt&gt;StaleConfig&lt;/tt&gt; and to figure out how to solve this.&lt;/del&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2194927">SERVER-71618</key>
            <summary>Investigate non auto-retry commands on StaleConfig error</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="silvia.surroca@mongodb.com">Silvia Surroca</assignee>
                                    <reporter username="silvia.surroca@mongodb.com">Silvia Surroca</reporter>
                        <labels>
                            <label>sharding-wfbf-day</label>
                    </labels>
                <created>Fri, 25 Nov 2022 11:04:06 +0000</created>
                <updated>Tue, 7 Mar 2023 14:34:31 +0000</updated>
                            <resolved>Tue, 7 Mar 2023 14:32:07 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="5255420" author="JIRAUSER1268536" created="Tue, 7 Mar 2023 14:32:07 +0000"  >&lt;p&gt;The assumption described on the Jira description is wrong since the retry on &lt;tt&gt;StaleConfig&lt;/tt&gt; error &lt;a href=&quot;https://github.com/10gen/mongo/blob/7a80f01c3a56292904a87856ea60124beab5c44a/src/mongo/db/service_entry_point_common.cpp#L1823&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;is handled on the service_entry_point&lt;/a&gt;, which is on a higher level than the &lt;tt&gt;scatter-gather&lt;/tt&gt; machinery.&lt;/p&gt;

&lt;p&gt;So, the fact that &lt;tt&gt;scatter-gather&lt;/tt&gt; is not retrying on &lt;tt&gt;StaleConfig&lt;/tt&gt; errors is correct since that exception must bubble up until being handled by the &lt;tt&gt;service_entry_point&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Closing this ticket as &lt;tt&gt;Done&lt;/tt&gt; since the investigation has concluded.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;PD: thanks &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tommaso.tocci%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;tommaso.tocci@mongodb.com&quot;&gt;tommaso.tocci@mongodb.com&lt;/a&gt; for reaching me out&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25133"><![CDATA[Sharding EMEA]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        48 weeks, 1 day 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>silvia.surroca@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            48 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>silvia.surroca@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i1k2s7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i19gcf:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="6664">Sharding EMEA 2022-12-26</customfieldvalue>
    <customfieldvalue id="6810">Sharding EMEA 2023-01-09</customfieldvalue>
    <customfieldvalue id="6811">Sharding EMEA 2023-01-23</customfieldvalue>

                        </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|i1joxj:</customfieldvalue>

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