<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:13:13 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-26791] move/split/mergeChunk commands do a full metadata refresh on the shard</title>
                <link>https://jira.mongodb.org/browse/SERVER-26791</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The move/split/mergeChunk commands on the shards perform a full metadata refresh on the shard prior to commencing the operation instead of incremental. For clusters with large number of chunks this can cause a significant delay.&lt;/p&gt;</description>
                <environment></environment>
        <key id="327065">SERVER-26791</key>
            <summary>move/split/mergeChunk commands do a full metadata refresh on the shard</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="randolph@mongodb.com">Randolph Tan</assignee>
                                    <reporter username="kaloian.manassiev@mongodb.com">Kaloian Manassiev</reporter>
                        <labels>
                    </labels>
                <created>Wed, 26 Oct 2016 18:57:14 +0000</created>
                <updated>Wed, 1 Nov 2017 13:56:42 +0000</updated>
                            <resolved>Mon, 23 Jan 2017 16:47:26 +0000</resolved>
                                    <version>3.2.10</version>
                    <version>3.4.0-rc1</version>
                                    <fixVersion>3.4.2</fixVersion>
                    <fixVersion>3.5.2</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="1481270" author="xgen-internal-githook" created="Fri, 20 Jan 2017 15:25:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;renctan&apos;, u&apos;name&apos;: u&apos;Randolph Tan&apos;, u&apos;email&apos;: u&apos;randolph@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-26791&quot; title=&quot;move/split/mergeChunk commands do a full metadata refresh on the shard&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-26791&quot;&gt;&lt;del&gt;SERVER-26791&lt;/del&gt;&lt;/a&gt; Shard metadata commands should perform partial refresh as much as possible&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 6add2c82bacecd5f54613ebf4be1553f3b046cbc)&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/774514cfad04866b42a1deb27b48488dec0f7520&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/774514cfad04866b42a1deb27b48488dec0f7520&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1480832" author="xgen-internal-githook" created="Thu, 19 Jan 2017 22:46:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;renctan&apos;, u&apos;name&apos;: u&apos;Randolph Tan&apos;, u&apos;email&apos;: u&apos;randolph@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-26791&quot; title=&quot;move/split/mergeChunk commands do a full metadata refresh on the shard&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-26791&quot;&gt;&lt;del&gt;SERVER-26791&lt;/del&gt;&lt;/a&gt; remove deleted test from blacklist&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c35c342e4f4d59db4803f7c1707d9998bec7b793&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c35c342e4f4d59db4803f7c1707d9998bec7b793&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1480831" author="xgen-internal-githook" created="Thu, 19 Jan 2017 22:46:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;renctan&apos;, u&apos;name&apos;: u&apos;Randolph Tan&apos;, u&apos;email&apos;: u&apos;randolph@10gen.com&apos;}
&lt;p&gt;Message: Revert &quot;Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-26791&quot; title=&quot;move/split/mergeChunk commands do a full metadata refresh on the shard&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-26791&quot;&gt;&lt;del&gt;SERVER-26791&lt;/del&gt;&lt;/a&gt; Shard metadata commands should perform partial refresh as much as possible&quot;&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit d3e67186d1f9c633e8e69ebb7bf2418d3850688a.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0e9947736fa66f1a997dd43fea6d1f854bb79518&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0e9947736fa66f1a997dd43fea6d1f854bb79518&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1480794" author="xgen-internal-githook" created="Thu, 19 Jan 2017 22:20:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;visualzhou&apos;, u&apos;name&apos;: u&apos;Siyuan Zhou&apos;, u&apos;email&apos;: u&apos;siyuan.zhou@mongodb.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-26791&quot; title=&quot;move/split/mergeChunk commands do a full metadata refresh on the shard&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-26791&quot;&gt;&lt;del&gt;SERVER-26791&lt;/del&gt;&lt;/a&gt; Shard metadata commands should perform partial refresh as much as possible&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 6add2c82bacecd5f54613ebf4be1553f3b046cbc.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d3e67186d1f9c633e8e69ebb7bf2418d3850688a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d3e67186d1f9c633e8e69ebb7bf2418d3850688a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1480675" author="xgen-internal-githook" created="Thu, 19 Jan 2017 20:55:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;renctan&apos;, u&apos;name&apos;: u&apos;Randolph Tan&apos;, u&apos;email&apos;: u&apos;randolph@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-26791&quot; title=&quot;move/split/mergeChunk commands do a full metadata refresh on the shard&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-26791&quot;&gt;&lt;del&gt;SERVER-26791&lt;/del&gt;&lt;/a&gt; Shard metadata commands should perform partial refresh as much as possible&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6add2c82bacecd5f54613ebf4be1553f3b046cbc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6add2c82bacecd5f54613ebf4be1553f3b046cbc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1450263" author="kaloian.manassiev" created="Tue, 6 Dec 2016 15:49:16 +0000"  >&lt;p&gt;Yes I agree. I was just wondering whether it is safe to make all refresh to be incremental with a back-off to full reload on epoch mismatch or there are some cases where we must force a complete reload.&lt;/p&gt;

&lt;p&gt;I think this is safe, as long as we are always including the version epoch in the incremental refresh query. This, combined with the check we do on the &lt;tt&gt;config.collections&lt;/tt&gt; entry will ensure that the refresh will never load chunks belonging to different incarnations of the same collection from different epochs.&lt;/p&gt;</comment>
                            <comment id="1450246" author="renctan" created="Tue, 6 Dec 2016 15:39:47 +0000"  >&lt;p&gt;Hm... I think you might be right. I am little bit concerned that if we don&apos;t have the full reload on epoch mismatch, there might be a scenario where there is no other way for a shard to recover. For example, if _recvChunkStart encounters this, then the shard will never accept chunks for this collection until you restart it.&lt;/p&gt;</comment>
                            <comment id="1450192" author="kaloian.manassiev" created="Tue, 6 Dec 2016 14:59:30 +0000"  >&lt;p&gt;Do you mean that we should include the retry logic used by &lt;a href=&quot;https://github.com/mongodb/mongo/blob/v3.4/src/mongo/db/s/sharding_state.cpp#L291&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;onStaleShardVersion&lt;/a&gt; in move/split/merge or as part of every refresh and have it back-off to full refresh in this case?&lt;/p&gt;

&lt;p&gt;Because for move/split/merge it is fine to fail the operation since on epoch mismatch it does not mean anything after collection drop and recreate.&lt;/p&gt;</comment>
                            <comment id="1449746" author="renctan" created="Mon, 5 Dec 2016 22:18:50 +0000"  >&lt;p&gt;It looks like we should be able to switch to incremental refresh, because the refresh code already checks for epoch mismatch so it should be safe to do so. We might need to add some extra code to handle the case of epoch mismatch.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="329482">SERVER-26913</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="309529">SERVER-25652</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="145171" name="createChunks_v3-4.js" size="2680" author="akira.kurogane" created="Fri, 2 Dec 2016 05:09:49 +0000"/>
                            <attachment id="142981" name="r3-4-0-rc2_test.tgz" size="224811" author="akira.kurogane" created="Mon, 31 Oct 2016 21:14:21 +0000"/>
                            <attachment id="145172" name="r3-4-0_test.tgz" size="38677" author="akira.kurogane" created="Fri, 2 Dec 2016 05:05:35 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.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_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="14340"><![CDATA[v3.4]]></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_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000Ur3eGIAR, 500A000000Uabt8IAB, 500A000000UaXEYIA3]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 31 Oct 2016 21:19:07 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 3 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_14262" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>End date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 23 Jan 2017 23:59:59 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-568</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>bruce.lucas@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 3 weeks, 5 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>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
            <customfieldvalue>randolph@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrjshz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrbndr:</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="1315">Sharding 2016-12-12</customfieldvalue>
    <customfieldvalue id="1316">Sharding 2017-01-02</customfieldvalue>
    <customfieldvalue id="1452">Sharding 2017-02-13</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_14261" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 26 Oct 2016 00:00:00 +0000</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|hseemn:</customfieldvalue>

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