<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:55:50 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-62698] Do not clear filtering metadata on secondaries upon minor version updates</title>
                <link>https://jira.mongodb.org/browse/SERVER-62698</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;As minor version updates are not implying a change of ownership, it should not be needed to &lt;a href=&quot;https://github.com/mongodb/mongo/blob/7879dd15deaa37f1f3a53a46e9877ef6b03b2f97/src/mongo/db/s/shard_server_op_observer.cpp#L92&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;clear the filtering metadata&lt;/a&gt; as long as a major version doesn&apos;t change.&lt;/p&gt;

&lt;p&gt;The current logic is the following: while refreshing, the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/b920995472dcc1002d154301b06af235e6318d5d/src/mongo/db/s/type_shard_collection.idl#L128-L134&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;refreshing&lt;/tt&gt; flag&lt;/a&gt; is&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/1f5405191a70cf5187a3fe450265cf55c5c567cf/src/mongo/db/s/shard_server_catalog_cache_loader.cpp#L135-L136&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;set to true&lt;/a&gt; and - after updating collection/chunks&#160;entries - the field is &lt;a href=&quot;https://github.com/mongodb/mongo/blob/1f5405191a70cf5187a3fe450265cf55c5c567cf/src/mongo/db/s/shard_server_catalog_cache_loader.cpp#L177&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;set to false&lt;/a&gt;. An observer is reacting to the &quot;set to false&quot; event by &lt;a href=&quot;https://github.com/mongodb/mongo/blob/7879dd15deaa37f1f3a53a46e9877ef6b03b2f97/src/mongo/db/s/shard_server_op_observer.cpp#L350-L353&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;registering a change&lt;/a&gt; that on commit causes the filtering metadata &lt;a href=&quot;https://github.com/mongodb/mongo/blob/7879dd15deaa37f1f3a53a46e9877ef6b03b2f97/src/mongo/db/s/shard_server_op_observer.cpp#L92&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;to be cleared up&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Objective of this ticket is to avoid clearing the filtering metadata on minor versions updates. The following could be a way to implement the solution:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&quot;Play&quot; with the &lt;tt&gt;refreshing&lt;/tt&gt; field in a different way:
	&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
		&lt;li&gt;Set it to &lt;tt&gt;true&lt;/tt&gt; and then &lt;tt&gt;false&lt;/tt&gt; on major version updates&lt;/li&gt;
		&lt;li&gt;Set it to &lt;tt&gt;true&lt;/tt&gt; and then &lt;tt&gt;unset&lt;/tt&gt; on minor version updates&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Change the &lt;tt&gt;CollectionVersionLogOpHandler&lt;/tt&gt; handling of a registered change:
	&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
		&lt;li&gt;If the field has been set to &lt;tt&gt;false&lt;/tt&gt;, &lt;a href=&quot;https://github.com/mongodb/mongo/blob/7879dd15deaa37f1f3a53a46e9877ef6b03b2f97/src/mongo/db/s/shard_server_op_observer.cpp#L85-L92&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;notify collection update and trigger metadata clearing&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;If the field has been &lt;tt&gt;unset&lt;/tt&gt;, only &lt;a href=&quot;https://github.com/mongodb/mongo/blob/7879dd15deaa37f1f3a53a46e9877ef6b03b2f97/src/mongo/db/s/shard_server_op_observer.cpp#L85-L87&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;notify collection update&lt;/a&gt; (don&apos;t clear metadata because data ownership didn&apos;t change)&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Handle multiversion incompatibility because old versions are &lt;a href=&quot;https://github.com/mongodb/mongo/blob/7879dd15deaa37f1f3a53a46e9877ef6b03b2f97/src/mongo/db/s/shard_metadata_util.cpp#L145-L146&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;expecting the field to be unset only if the version had never been set on the collection entry&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="1965541">SERVER-62698</key>
            <summary>Do not clear filtering metadata on secondaries upon minor version updates</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="3">Duplicate</resolution>
                                        <assignee username="backlog-server-sharding-emea">[DO NOT USE] Backlog - Sharding EMEA</assignee>
                                    <reporter username="pierlauro.sciarelli@mongodb.com">Pierlauro Sciarelli</reporter>
                        <labels>
                    </labels>
                <created>Tue, 18 Jan 2022 11:01:15 +0000</created>
                <updated>Tue, 6 Dec 2022 00:39:10 +0000</updated>
                            <resolved>Mon, 4 Jul 2022 10:39:22 +0000</resolved>
                                    <version>5.2.0</version>
                    <version>4.2.17</version>
                    <version>4.4.10</version>
                    <version>5.0.5</version>
                    <version>5.1.1</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="4655347" author="kaloian.manassiev" created="Mon, 4 Jul 2022 10:39:22 +0000"  >&lt;p&gt;Closing it as duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-67078&quot; title=&quot;Advancing just the minor version on the primary of a shard should not stall the secondaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-67078&quot;&gt;&lt;del&gt;SERVER-67078&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="4333519" author="connie.chen" created="Thu, 3 Feb 2022 16:17:35 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=garaudy.etienne&quot; class=&quot;user-hover&quot; rel=&quot;garaudy.etienne&quot;&gt;garaudy.etienne&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="2063830">SERVER-67078</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10020">
                    <name>Gantt Dependency</name>
                                                                <inwardlinks description="has to be done after">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25133"><![CDATA[Sharding EMEA]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 3 Feb 2022 16:17:35 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 31 weeks, 2 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>
                            1 year, 31 weeks, 2 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>backlog-server-sharding-emea</customfieldvalue>
            <customfieldvalue>connie.chen@mongodb.com</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
            <customfieldvalue>pierlauro.sciarelli@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0h4xz:</customfieldvalue>

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

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