<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:26: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-31398] _configsvrMovePrimary retries fail if clone from old primary completed in a previous attempt</title>
                <link>https://jira.mongodb.org/browse/SERVER-31398</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;If the CSRS primary steps down while executing _configsvrMovePrimary after having told the toShard &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.5.13/src/mongo/db/s/config/configsvr_move_primary_command.cpp#L202-L216&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;to clone&lt;/a&gt; the non-sharded collections from the old primary shard, the clone will still complete because the shards won&apos;t know the command was interrupted, but mongos will receive a retryable error and retry _configsvrMovePrimary when the next primary steps up, because it uses &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.5.13/src/mongo/s/commands/cluster_move_primary_cmd.cpp#L120&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;RetryPolicy::kIdempotent&lt;/a&gt;. When the new primary sends the clone command to the toShard again, the clone will fail, because the namespaces to be cloned will already exist on the toShard, causing the whole command to fail (unless there weren&apos;t any unsharded collections).&lt;/p&gt;</description>
                <environment></environment>
        <key id="440641">SERVER-31398</key>
            <summary>_configsvrMovePrimary retries fail if clone from old primary completed in a previous attempt</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="backlog-server-sharding">[DO NOT USE] Backlog - Sharding Team</assignee>
                                    <reporter username="jack.mulrow@mongodb.com">Jack Mulrow</reporter>
                        <labels>
                            <label>PM-1017</label>
                            <label>sharding-causes-bfs-hard</label>
                    </labels>
                <created>Wed, 4 Oct 2017 21:50:35 +0000</created>
                <updated>Tue, 6 Dec 2022 03:50:14 +0000</updated>
                            <resolved>Fri, 9 Oct 2020 15:12:23 +0000</resolved>
                                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="3437063" author="kaloian.manassiev" created="Fri, 9 Oct 2020 15:12:23 +0000"  >&lt;p&gt;This is a deficiency of MovePrimary, which we will not address in exchange for making it use the moveChunk functionality for unsharded collections.&lt;/p&gt;</comment>
                            <comment id="3417794" author="kaloian.manassiev" created="Wed, 30 Sep 2020 06:04:17 +0000"  >&lt;p&gt;This was marked as dependent on PM-1645, but there is nothing in that project that would have addressed it.&lt;/p&gt;

&lt;p&gt;Putting in Needs Triage to decide officially to close &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32142&quot; title=&quot;`movePrimary` can leave orphaned data when it aborts after cloning&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32142&quot;&gt;&lt;del&gt;SERVER-32142&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-31398&quot; title=&quot;_configsvrMovePrimary retries fail if clone from old primary completed in a previous attempt&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-31398&quot;&gt;&lt;del&gt;SERVER-31398&lt;/del&gt;&lt;/a&gt; as won&apos;t fix because we will likely not fix movePrimary for older versions and these are not data-loss bugs, but more of a test nuisance.&lt;/p&gt;</comment>
                            <comment id="1889190" author="esha.maharishi@10gen.com" created="Fri, 11 May 2018 15:09:24 +0000"  >&lt;p&gt;Hm, I think this failure would still occur after Enable Safe Migrations... but the &quot;silently skip new data&quot; part would go away, so maybe that fix would make sense at that point. It could go in either the &quot;Enable Safe Migrations&quot; or &quot;Sharding Task Queue&quot; epics.&lt;/p&gt;</comment>
                            <comment id="1889188" author="kaloian.manassiev" created="Fri, 11 May 2018 15:05:28 +0000"  >&lt;blockquote&gt;&lt;p&gt;I suppose the clone command could be made idempotent, so that it succeeds if it already has all the collections?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;This sounds like a bad idea &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;    This means it can silently skip new data that got added to these collections, which is a total change in behaviour. With the project to enable migrations of unsharded collections, this is also totally unnecessary.&lt;/p&gt;</comment>
                            <comment id="1889170" author="esha.maharishi@10gen.com" created="Fri, 11 May 2018 15:00:06 +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;, yes, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32142&quot; title=&quot;`movePrimary` can leave orphaned data when it aborts after cloning&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32142&quot;&gt;&lt;del&gt;SERVER-32142&lt;/del&gt;&lt;/a&gt; is the reason. &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-31526&quot; title=&quot;Replace use of ScopedDbConnection in _configsvrMovePrimary with Shard because it fails clone without retrying NotMaster errors from a shard&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-31526&quot;&gt;&lt;del&gt;SERVER-31526&lt;/del&gt;&lt;/a&gt; is just loosely related because it also makes movePrimary fail on transient errors, except between the config and shard rather than mongos and config.&lt;/p&gt;

&lt;p&gt;I suppose the clone command could be made idempotent, so that it succeeds if it already has all the collections? Once movePrimary does not move actual collection data, this might be reasonable. I&apos;m not opposed to just blacklisting these tests as a temporary fix, though.&lt;/p&gt;</comment>
                            <comment id="1889163" author="kaloian.manassiev" created="Fri, 11 May 2018 14:54:25 +0000"  >&lt;p&gt;Is this just a result of &lt;tt&gt;_configSvrMovePrimary&lt;/tt&gt; not being idempotent and not a matter of whether or not it got interrupted on the original primary, which stepped down? I.e. - why is it related to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-31526&quot; title=&quot;Replace use of ScopedDbConnection in _configsvrMovePrimary with Shard because it fails clone without retrying NotMaster errors from a shard&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-31526&quot;&gt;&lt;del&gt;SERVER-31526&lt;/del&gt;&lt;/a&gt; at all? Seems like &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32142&quot; title=&quot;`movePrimary` can leave orphaned data when it aborts after cloning&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32142&quot;&gt;&lt;del&gt;SERVER-32142&lt;/del&gt;&lt;/a&gt; is the reason.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=esha.maharishi&quot; class=&quot;user-hover&quot; rel=&quot;esha.maharishi&quot;&gt;esha.maharishi&lt;/a&gt; - how are we going to fix it? Making movePrimary idempotent without a resumable task queue is impossible.&lt;/p&gt;

&lt;p&gt;We should just blacklist these tests from the stepdown suite.&lt;/p&gt;</comment>
                            <comment id="1879510" author="esha.maharishi@10gen.com" created="Tue, 1 May 2018 19:18:59 +0000"  >&lt;p&gt;If we don&apos;t plan to fix this soon, we may want to blacklist the failing tests from the config stepdown suite.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="467075">SERVER-32142</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="444436">SERVER-31526</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>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25141"><![CDATA[Sharding]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 1 May 2018 19:18:59 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 17 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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 17 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>26.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>backlog-server-sharding</customfieldvalue>
            <customfieldvalue>esha.maharishi@mongodb.com</customfieldvalue>
            <customfieldvalue>jack.mulrow@mongodb.com</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hth1rb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht8ygn:</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_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|htgnuv:</customfieldvalue>

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