<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:06:16 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-44540] Rename forceRoutingTableRefresh to reflect the refresh of filtering metadata</title>
                <link>https://jira.mongodb.org/browse/SERVER-44540</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The command name forceRoutingTableRefresh is misleading because the command actually refreshes the filtering metadata, not the routing metadata.&lt;/p&gt;</description>
                <environment></environment>
        <key id="996019">SERVER-44540</key>
            <summary>Rename forceRoutingTableRefresh to reflect the refresh of filtering metadata</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="tommaso.tocci@mongodb.com">Tommaso Tocci</assignee>
                                    <reporter username="josef.ahmad@mongodb.com">Josef Ahmad</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Nov 2019 13:34:02 +0000</created>
                <updated>Sun, 29 Oct 2023 22:15:07 +0000</updated>
                            <resolved>Tue, 10 Dec 2019 14:54:57 +0000</resolved>
                                                    <fixVersion>4.3.3</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="2596220" author="xgen-internal-githook" created="Tue, 10 Dec 2019 13:30:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Tommaso Tocci&apos;, &apos;username&apos;: &apos;toto-dev&apos;, &apos;email&apos;: &apos;tommaso.tocci@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-44540&quot; title=&quot;Rename forceRoutingTableRefresh to reflect the refresh of filtering metadata&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-44540&quot;&gt;&lt;del&gt;SERVER-44540&lt;/del&gt;&lt;/a&gt; Replace call to deprecated `forceRoutingTableRefresh` command&lt;/p&gt;

&lt;p&gt;Replace deprecated `forceRoutingTableRefresh` call with `_flushRoutingTableCacheUpdate`.&lt;/p&gt;

&lt;p&gt;There are no more calls to the deprecated `forceRoutingTableRefresh`,&lt;br/&gt;
so we can get rid of it in the next release.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/72905120dc7840263c99d8da963c7f6ca11b0e7b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/72905120dc7840263c99d8da963c7f6ca11b0e7b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2548523" author="kaloian.manassiev" created="Tue, 19 Nov 2019 07:42:00 +0000"  >&lt;blockquote&gt;&lt;p&gt;I don&apos;t think the _flushRoutingTableCacheUpdates call would create indexes and clone options... I believe that is done through this call to cloneCollectionOptionsFromPrimaryShard.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Ah of course, I forgot about that command that we introduced as well. Is it a problem that we refresh all shards which receive chunks from a collection during initial sharding? I&apos;d say it definitely doesn&apos;t hurt, but also you are right that we shouldn&apos;t need it for correctness.&lt;/p&gt;</comment>
                            <comment id="2547826" author="esha.maharishi@10gen.com" created="Mon, 18 Nov 2019 21:32:55 +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;, Hmm, I don&apos;t think the _flushRoutingTableCacheUpdates call would create indexes and clone options... I believe that is done through this &lt;a href=&quot;https://github.com/mongodb/mongo/blob/837196d77bed9a7c242d2a4945c9c67e93761098/src/mongo/db/s/shardsvr_shard_collection.cpp#L568&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;call to cloneCollectionOptionsFromPrimaryShard&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Otherwise, the plan to remove uses of the {forceRoutingTableRefresh} name in 4.4 so that we can add a new name in 4.6 sounds good to me.&lt;/p&gt;</comment>
                            <comment id="2547222" author="kaloian.manassiev" created="Mon, 18 Nov 2019 17:35:51 +0000"  >&lt;blockquote&gt;&lt;p&gt;By the way, is it required that _shardsvrShardCollection make the other shards refresh when doing initial split?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;It&apos;s not just the refreshing of the metadata, but we also need to create the indexes and clone collMods, which happens under that call as well.&lt;/p&gt;</comment>
                            <comment id="2547219" author="kaloian.manassiev" created="Mon, 18 Nov 2019 17:35:00 +0000"  >&lt;p&gt;Ah, I didn&apos;t realise that there are already two different users of this name. This means that it would take one release to unify them and drop &lt;tt&gt;forceRoutingTableRefresh&lt;/tt&gt; and then one more release to do the complete renames.&lt;/p&gt;

&lt;p&gt;Given that the name of the command is just a minor nuisance, I&apos;d say let&apos;s leave it as it is now, but at least in 4.4 make everyone use the &lt;tt&gt;_flushRoutingTableCacheUpdates&lt;/tt&gt; variant, so we can drop &lt;tt&gt;forceRoutingTableRefresh&lt;/tt&gt; in 4.6. We can document in the TSE KBs that they should use the _flushRoutingTableCacheUpdates variant. &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=josef.ahmad&quot; class=&quot;user-hover&quot; rel=&quot;josef.ahmad&quot;&gt;josef.ahmad&lt;/a&gt;, do you have any objections to this plan?&lt;/p&gt;</comment>
                            <comment id="2546774" author="esha.maharishi@10gen.com" created="Mon, 18 Nov 2019 14:39:25 +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; ok, sure. Note that we renamed it once to &quot;_flushRoutingTableCacheUpdates,&quot; and right now both names are in use:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/8772a8a2e8c966d10ff22180633ea4e908734a47/src/mongo/db/s/shard_server_catalog_cache_loader.cpp#L313&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;secondaries use &quot;forceRoutingTableRefresh&quot;&lt;/a&gt; to ping the primary to refresh&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/8772a8a2e8c966d10ff22180633ea4e908734a47/src/mongo/db/s/shardsvr_shard_collection.cpp#L677&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;_shardsvrShardCollection uses &quot;_flushRoutingTableCacheUpdates&quot;&lt;/a&gt; to make other shards refresh.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;It might be a bit tricky to give it a third name, given that these commands are sent between nodes (so we would have to take care that mixed-version clusters still work), and &lt;a href=&quot;https://github.com/mongodb/mongo/blob/8772a8a2e8c966d10ff22180633ea4e908734a47/src/mongo/db/commands.h#L777&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;commands only support one alternate name today&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;(By the way, is it required that _shardsvrShardCollection make the other shards refresh when doing initial split? It seems like only the primary shard should need to refresh...)&lt;/p&gt;</comment>
                            <comment id="2542589" author="kaloian.manassiev" created="Fri, 15 Nov 2019 10:38:11 +0000"  >&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;, the issue is just the name of the command, not what happens behind the scenes. The name of the command indicates that the routing metadata is being refreshed, while in fact the intention of the command is to refresh the filtering metadata &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;&lt;/p&gt;

&lt;p&gt;I propose we rename it to &lt;tt&gt;_shardsvrSyncFilteringMetadata&lt;/tt&gt; - what do you say?&lt;/p&gt;</comment>
                            <comment id="2541692" author="esha.maharishi@10gen.com" created="Thu, 14 Nov 2019 22:37:41 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=josef.ahmad&quot; class=&quot;user-hover&quot; rel=&quot;josef.ahmad&quot;&gt;josef.ahmad&lt;/a&gt;, right now the filtering metadata is actually refreshed by &lt;a href=&quot;https://github.com/mongodb/mongo/blob/4fe19a9caa9a40dd183770099d716f71b29ae558/src/mongo/db/s/shard_filtering_metadata_refresh.cpp#L152&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;refreshing the routing metadata&lt;/a&gt; and then &lt;a href=&quot;https://github.com/mongodb/mongo/blob/4fe19a9caa9a40dd183770099d716f71b29ae558/src/mongo/db/s/shard_filtering_metadata_refresh.cpp#L215&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;transferring the new chunk distribution into the filtering metadata&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="2528256" author="carl.champain" created="Mon, 11 Nov 2019 15:11:34 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=josef.ahmad&quot; class=&quot;user-hover&quot; rel=&quot;josef.ahmad&quot;&gt;josef.ahmad&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Passing this ticket along to the Sharding team.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </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>1.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>Mon, 11 Nov 2019 15:11:34 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 9 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_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>
                            4 years, 9 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>carl.champain@mongodb.com</customfieldvalue>
            <customfieldvalue>esha.maharishi@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>josef.ahmad@mongodb.com</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
            <customfieldvalue>tommaso.tocci@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hw1mdz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hvof4n:</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="3473">Sharding 2019-12-16</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|hw18nb:</customfieldvalue>

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