<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:40:52 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-57057] Reduce routing info refreshes on the mergeChunks path</title>
                <link>https://jira.mongodb.org/browse/SERVER-57057</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&#160;&lt;br/&gt;
 The current &lt;tt&gt;mergeChunks&lt;/tt&gt; path is very inefficient because:&lt;/p&gt;

&lt;p&gt;It performs three sequential refreshes (&lt;a href=&quot;https://github.com/mongodb/mongo/blob/c8fe75faf206b6ef78381aa53039d3c0897b01ad/src/mongo/s/commands/cluster_merge_chunks_cmd.cpp#L106&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;router&lt;/a&gt;, &lt;a href=&quot;https://github.com/mongodb/mongo/blob/c8fe75faf206b6ef78381aa53039d3c0897b01ad/src/mongo/db/s/merge_chunks_command.cpp#L94&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;shard-pre-merge&lt;/a&gt; and &lt;a href=&quot;https://github.com/mongodb/mongo/blob/c8fe75faf206b6ef78381aa53039d3c0897b01ad/src/mongo/db/s/merge_chunks_command.cpp#L219&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;shard-post-merge&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;All this makes the &lt;tt&gt;mergeChunks&lt;/tt&gt; command very expensive both from latency and from impact on the config server points of view.&lt;/p&gt;

&lt;p&gt;It would be much better if:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;The router command:
	&lt;ul&gt;
		&lt;li&gt;Didn&apos;t do a &lt;a href=&quot;https://github.com/mongodb/mongo/blob/65849225a27df5e69999ebbf1f5c8535512eb2b9/src/mongo/s/commands/cluster_merge_chunks_cmd.cpp#L106&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;refresh&lt;/a&gt; on entry, but relied on the cached information and the &lt;tt&gt;shardVersion&lt;/tt&gt; (this has backwards compatibility implications)&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;The shard command (in order of importance):
	&lt;ul&gt;
		&lt;li&gt;Just checked the major &lt;tt&gt;shardVersion&lt;/tt&gt; (for routing correctness, i.e., to make sure this shard owns that range)&lt;/li&gt;
		&lt;li&gt;Only did a refresh on the shard if the chunk bounds that the router sent didn&apos;t match with the cached info (this can only happen if a previous merge committed against the ConfigServer, but failed to refresh)
&lt;h4&gt;&lt;a name=&quot;%C2%A0&quot;&gt;&lt;/a&gt;&#160;&lt;/h4&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="1730938">SERVER-57057</key>
            <summary>Reduce routing info refreshes on the mergeChunks path</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="simon.gratzer@mongodb.com">Simon Gratzer</assignee>
                                    <reporter username="simon.gratzer@mongodb.com">Simon Gratzer</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 May 2021 11:53:24 +0000</created>
                <updated>Sun, 29 Oct 2023 21:53:21 +0000</updated>
                            <resolved>Wed, 26 May 2021 11:51:23 +0000</resolved>
                                                    <fixVersion>4.2.15</fixVersion>
                    <fixVersion>4.4.7</fixVersion>
                    <fixVersion>5.0.0-rc1</fixVersion>
                    <fixVersion>4.0.26</fixVersion>
                    <fixVersion>5.1.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="4107956" author="JIRAUSER1259052" created="Wed, 6 Oct 2021 18:52:40 +0000"  >&lt;p&gt;Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it&#8217;s been triggered. For more active release information, please keep an eye on #server-release. Thank you!&lt;/p&gt;</comment>
                            <comment id="3875538" author="xgen-internal-githook" created="Mon, 14 Jun 2021 12:40:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Simon Graetzer&apos;, &apos;email&apos;: &apos;simon.gratzer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57057&quot; title=&quot;Reduce routing info refreshes on the mergeChunks path&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57057&quot;&gt;&lt;del&gt;SERVER-57057&lt;/del&gt;&lt;/a&gt; Reduce routing info refreshes on the mergeChunks path (BACKPORT-9472 )&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3526e237f3ad7cd30f6f9edad4d57cd06ad2d22d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3526e237f3ad7cd30f6f9edad4d57cd06ad2d22d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3866002" author="xgen-internal-githook" created="Tue, 8 Jun 2021 13:47:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Simon Gratzer&apos;, &apos;email&apos;: &apos;simon.gratzer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57057&quot; title=&quot;Reduce routing info refreshes on the mergeChunks path&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57057&quot;&gt;&lt;del&gt;SERVER-57057&lt;/del&gt;&lt;/a&gt; Reduce routing info refreshes on the mergeChunks path (BACKPORT-9471)&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fc67863fb1b57825114b1e2c9122518e541869c8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fc67863fb1b57825114b1e2c9122518e541869c8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3850815" author="xgen-internal-githook" created="Tue, 1 Jun 2021 13:00:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Simon Gratzer&apos;, &apos;email&apos;: &apos;simon.gratzer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57057&quot; title=&quot;Reduce routing info refreshes on the mergeChunks path&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57057&quot;&gt;&lt;del&gt;SERVER-57057&lt;/del&gt;&lt;/a&gt; Reduce routing info refreshes on the mergeChunks path (BACKPORT-9358)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/727cb006bc1723840d5cf98775d56f2b0eaca8a3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/727cb006bc1723840d5cf98775d56f2b0eaca8a3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3849405" author="xgen-internal-githook" created="Mon, 31 May 2021 08:55:33 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Simon Gratzer&apos;, &apos;email&apos;: &apos;simon.gratzer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57057&quot; title=&quot;Reduce routing info refreshes on the mergeChunks path&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57057&quot;&gt;&lt;del&gt;SERVER-57057&lt;/del&gt;&lt;/a&gt; Reduce routing info refreshes on the mergeChunks path (BACKPORT-9355)&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c8919927470786ac7c2a411258fd61304eef9c20&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c8919927470786ac7c2a411258fd61304eef9c20&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3840894" author="xgen-internal-githook" created="Wed, 26 May 2021 11:08:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Simon Gratzer&apos;, &apos;email&apos;: &apos;simon.gratzer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57057&quot; title=&quot;Reduce routing info refreshes on the mergeChunks path&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57057&quot;&gt;&lt;del&gt;SERVER-57057&lt;/del&gt;&lt;/a&gt; Reduce routing info refreshes on the mergeChunks path&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/69fa6204e810606e33d08bad97fff273222b6531&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/69fa6204e810606e33d08bad97fff273222b6531&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1708201">SERVER-56786</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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="21777"><![CDATA[v5.0]]></customfieldvalue>
    <customfieldvalue key="18953"><![CDATA[v4.4]]></customfieldvalue>
    <customfieldvalue key="16775"><![CDATA[v4.2]]></customfieldvalue>
    <customfieldvalue key="15640"><![CDATA[v4.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, 20 May 2021 07:48:22 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 18 weeks 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_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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-2321</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>
                            2 years, 18 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>simon.gratzer@mongodb.com</customfieldvalue>
            <customfieldvalue>vivian.ge@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzdcn3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hyy2l3:</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="4840">Sharding EMEA 2021-05-31</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|hzcyw7:</customfieldvalue>

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