<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:43:38 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-58116] StaleShardVersion error not triggering a refresh in moveChunk</title>
                <link>https://jira.mongodb.org/browse/SERVER-58116</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When a stale mongos gets a moveChunk command it &lt;a href=&quot;https://github.com/mongodb/mongo/blob/914174babe1dc163615c0f031db8744aff7d2c8d/src/mongo/s/commands/cluster_move_chunk_cmd.cpp#L102&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;first does a refresh&lt;/a&gt;. However a mongos might &lt;font color=&quot;#1d1c1d&quot;&gt;have refreshed from a stale configsvr secondary that has not seen the latest split / merge operation on yet.&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#1d1c1d&quot;&gt;The mongos may not yet know of a clusterTime inclusive of the split because another mongos did it, so there is no causal consistency guarantee.&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#1d1c1d&quot;&gt;For a moveChunk operation the shard will later throw a StaleShardVersion error &lt;a href=&quot;https://github.com/mongodb/mongo/blob/914174babe1dc163615c0f031db8744aff7d2c8d/src/mongo/db/s/collection_metadata.cpp#L245&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here.&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#1d1c1d&quot;&gt;However the mongos will not retry the operation because this code is missing the StaleConfigInfo extra information, which causes the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/914174b/src/mongo/s/commands/strategy.cpp#L987&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;code in strategy.cpp&lt;/a&gt; to abort a retry attempt.&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#1d1c1d&quot;&gt;Possible solutions:&lt;/font&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;font color=&quot;#1d1c1d&quot;&gt;Attach StaleConfigInfo to the exceptions on the shard&lt;/font&gt;&lt;/li&gt;
	&lt;li&gt;&lt;font color=&quot;#1d1c1d&quot;&gt;Perform a version check on the configsvr&lt;/font&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1800601">SERVER-58116</key>
            <summary>StaleShardVersion error not triggering a refresh in moveChunk</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="13201">Fixed</resolution>
                                        <assignee username="antonio.fuschetto@mongodb.com">Antonio Fuschetto</assignee>
                                    <reporter username="simon.gratzer@mongodb.com">Simon Gratzer</reporter>
                        <labels>
                            <label>sharding-wfbf-day</label>
                    </labels>
                <created>Mon, 28 Jun 2021 13:56:33 +0000</created>
                <updated>Sun, 29 Oct 2023 21:51:35 +0000</updated>
                            <resolved>Mon, 14 Mar 2022 09:07:06 +0000</resolved>
                                    <version>5.0.0</version>
                    <version>5.1.0</version>
                                    <fixVersion>6.0.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="4409295" author="JIRAUSER1259062" created="Mon, 14 Mar 2022 09:06:47 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kaloian.manassiev&quot; class=&quot;user-hover&quot; rel=&quot;kaloian.manassiev&quot;&gt;kaloian.manassiev&lt;/a&gt;, that&apos;s correct. Throwing a &lt;tt&gt;StaleConfigInfo&lt;/tt&gt; &lt;a href=&quot;https://github.com/10gen/mongo/blob/578ab85557038ccc48a78e11191c1bc9a53f6fb9/src/mongo/db/s/migration_source_manager.cpp#L258-L277&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt; resolves the problem reported in the ticket. Thanks.&lt;/p&gt;</comment>
                            <comment id="4406402" author="kaloian.manassiev" created="Fri, 11 Mar 2022 14:26:37 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=antonio.fuschetto&quot; class=&quot;user-hover&quot; rel=&quot;antonio.fuschetto&quot;&gt;antonio.fuschetto&lt;/a&gt;, I have finally committed &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63327&quot; title=&quot;Remove usages of the StaleShardVersion error code from the migrations path&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63327&quot;&gt;&lt;del&gt;SERVER-63327&lt;/del&gt;&lt;/a&gt;. Let me know if that unblocks you now.&lt;/p&gt;</comment>
                            <comment id="4349716" author="kaloian.manassiev" created="Fri, 11 Feb 2022 06:54:49 +0000"  >&lt;p&gt;I think you are right, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=antonio.fuschetto&quot; class=&quot;user-hover&quot; rel=&quot;antonio.fuschetto&quot;&gt;antonio.fuschetto&lt;/a&gt;. You can block it on &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63327&quot; title=&quot;Remove usages of the StaleShardVersion error code from the migrations path&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63327&quot;&gt;&lt;del&gt;SERVER-63327&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="4347493" author="JIRAUSER1259062" created="Thu, 10 Feb 2022 13:18:21 +0000"  >&lt;p&gt;The&#160;&lt;a href=&quot;https://github.com/10gen/mongo/blob/8179692b362d8237f201719946eb46bac6a5e961/src/mongo/db/s/collection_metadata.cpp#L184-L206&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;current logic&lt;/a&gt;, that retargets a failed command with an error in the&#160;&lt;tt&gt;NeedRetargettingError&lt;/tt&gt; category, needs the&#160;&lt;a href=&quot;https://github.com/10gen/mongo/blob/eb2bfbb0ab0c77f47349da0417ac63deff7a34e0/src/mongo/s/commands/strategy.cpp#L986-L988&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;StaleConfigInfo&lt;/a&gt; as extra info to proceed. When missing, the command will not be retargeted and this is what happens in the case of the problem that gave rise to this ticket.&lt;/p&gt;

&lt;p&gt;A&#160;&lt;tt&gt;StaleShardVersion&lt;/tt&gt; error is raised in the event of the shard is &lt;a href=&quot;https://github.com/10gen/mongo/blob/8179692b362d8237f201719946eb46bac6a5e961/src/mongo/db/s/collection_metadata.cpp#L184-L206&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;unable to find chunk with the requested bounds&lt;/a&gt;, and no extra info is passed. As a consequence, the mongos won&apos;t retargeted the &lt;tt&gt;moveChunk&lt;/tt&gt;&#160;command.&lt;/p&gt;

&lt;p&gt;Kal is currently working on&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63327&quot; title=&quot;Remove usages of the StaleShardVersion error code from the migrations path&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63327&quot;&gt;&lt;del&gt;SERVER-63327&lt;/del&gt;&lt;/a&gt;, with the goal of getting rid of the&#160;&lt;tt&gt;StaleShardVersion&lt;/tt&gt; error and supplanting it with&#160;&lt;tt&gt;StaleConfig&lt;/tt&gt; error. The latter is in the same&#160;&lt;tt&gt;NeedRetargettingError&lt;/tt&gt; category and also provides extra info (i.e., &lt;tt&gt;StaleConfigInfo)&lt;/tt&gt;. This implies that the current logic on mongos will be able to retarget the &lt;tt&gt;moveChunk&lt;/tt&gt;&#160;command when the shard will be unable to find the chunk with the requested bounds.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kaloian.manassiev&quot; class=&quot;user-hover&quot; rel=&quot;kaloian.manassiev&quot;&gt;kaloian.manassiev&lt;/a&gt;, any thoughts?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="1978032">SERVER-63327</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                                        </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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 10 Feb 2022 13:18:21 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 47 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-63327'>SERVER-63327</a></s>]]></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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 47 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>32.0</customfieldvalue>

                        </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>antonio.fuschetto@mongodb.com</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
            <customfieldvalue>simon.gratzer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzp5rj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzwfpz:</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_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="5430">Sharding EMEA 2021-12-27</customfieldvalue>
    <customfieldvalue id="5681">Sharding EMEA 2022-01-10</customfieldvalue>
    <customfieldvalue id="5682">Sharding EMEA 2022-01-24</customfieldvalue>
    <customfieldvalue id="5683">Sharding EMEA 2022-02-07</customfieldvalue>
    <customfieldvalue id="5749">Sharding EMEA 2022-02-21</customfieldvalue>
    <customfieldvalue id="5815">Sharding EMEA 2022-03-07</customfieldvalue>
    <customfieldvalue id="5816">Sharding EMEA 2022-03-21</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/BF-21676?filter=-1&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/BF-21676?filter=-1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Rerun&lt;/p&gt;</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|hzos0n:</customfieldvalue>

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